Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Is S.R.P related Code open source?

Discussion in 'General Graphics' started by Lulucifer, Jul 20, 2018.

  1. Lulucifer

    Lulucifer

    Joined:
    Jul 8, 2012
    Posts:
    358
    Unity has Open source it's Code of C#,
    I am studying the new features of 2018 that Scriptable Render Pipeline
    Does the related code is writen in C#,if it is,where are these code located in Unity's GitHub Project

    The code like this:

    Code (CSharp):
    1. namespace UnityEngine.Experimental.Rendering
    2. {
    3.     //
    4.     // 摘要:
    5.     //     ///
    6.     //     Defines a series of commands and settings that describes how Unity renders a
    7.     //     frame.
    8.     //     ///
    9.     public abstract class RenderPipeline : IRenderPipeline, IDisposable
    10.     {
    11.         protected RenderPipeline();
    12.  
    13.         //
    14.         // 摘要:
    15.         //     ///
    16.         //     When the IRenderPipeline is invalid or destroyed this returns true.
    17.         //     ///
    18.         public bool disposed { get; }
    19.  
    20.         public static event Action<Camera[]> beginFrameRendering;
    21.         public static event Action<Camera> beginCameraRendering;
    22.  
    23.         //
    24.         // 摘要:
    25.         //     ///
    26.         //     Call the delegate used during SRP rendering before a single camera starts rendering.
    27.         //     ///
    28.         //
    29.         // 参数:
    30.         //   camera:
    31.         public static void BeginCameraRendering(Camera camera);
    32.         //
    33.         // 摘要:
    34.         //     ///
    35.         //     Call the delegate used during SRP rendering before a render begins.
    36.         //     ///
    37.         //
    38.         // 参数:
    39.         //   cameras:
    40.         public static void BeginFrameRendering(Camera[] cameras);
    41.         //
    42.         // 摘要:
    43.         //     ///
    44.         //     Dispose the Renderpipeline destroying all internal state.
    45.         //     ///
    46.         public virtual void Dispose();
    47.         //
    48.         // 摘要:
    49.         //     ///
    50.         //     Defines custom rendering for this RenderPipeline.
    51.         //     ///
    52.         //
    53.         // 参数:
    54.         //   renderContext:
    55.         //
    56.         //   cameras:
    57.         public virtual void Render(ScriptableRenderContext renderContext, Camera[] cameras);
    58.     }
    59. }
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,845
  3. andybak

    andybak

    Joined:
    Jan 14, 2017
    Posts:
    561
  4. Lulucifer

    Lulucifer

    Joined:
    Jul 8, 2012
    Posts:
    358
    Thanks ,Guy