A game about forced loneliness, made by TACStudios
at master 21 lines 1.5 kB view raw
1using UnityEngine.Scripting.APIUpdating; 2 3namespace UnityEngine.Rendering.RenderGraphModule 4{ 5 /// <summary> 6 /// A base class that can be inherited by render graph implementers. Currently this is only used by URP. In the future this will allow shared SRP rendering features between HDRP and URP through render graph. 7 /// </summary> 8 [MovedFrom(true, "UnityEngine.Experimental.Rendering.RenderGraphModule", "UnityEngine.Rendering.RenderGraphModule")] 9 public interface IRenderGraphRecorder 10 { 11 /// <summary> 12 /// This function is called during render graph recording and allows the implementing class to register the relevant passes and resources to the passed in render graph. 13 /// To access information about the current execution context (current camera, ...) the ContextContainer can be queried. See the render pipeline documentation 14 /// for more information on the types that are available in the context container. (The exact types available may differ based on the currently active render pipeline). 15 /// This is where custom rendering occurs. Specific details are left to the implementation. 16 /// </summary> 17 /// <param name="renderGraph">The graph to register resources and passes with.</param> 18 /// <param name="frameData">A ContextContainer that allows querying information about the current execution context (.e.g. RenderPipeline camera info).</param> 19 public void RecordRenderGraph(RenderGraph renderGraph, ContextContainer frameData); 20 } 21}