Struct RenderGraphContext
This class specifies the context given to every render pass. This context type passes a generic command buffer that can be used to schedule all commands. This will eventually be deprecated in favor of more specific contexts that have more specific command buffer types.
Namespace: UnityEngine.Experimental.Rendering.RenderGraphModule
Syntax
public struct RenderGraphContext : IDerivedRendergraphContext
Properties
cmd
Command Buffer used for rendering.
Declaration
public readonly CommandBuffer cmd { get; }
Property Value
Type | Description |
---|---|
CommandBuffer |
defaultResources
Render Graph default resources.
Declaration
public readonly RenderGraphDefaultResources defaultResources { get; }
Property Value
Type | Description |
---|---|
RenderGraphDefaultResources |
renderContext
Scriptable Render Context used for rendering.
Declaration
public readonly ScriptableRenderContext renderContext { get; }
Property Value
Type | Description |
---|---|
ScriptableRenderContext |
renderGraphPool
Render Graph pool used for temporary data.
Declaration
public readonly RenderGraphObjectPool renderGraphPool { get; }
Property Value
Type | Description |
---|---|
RenderGraphObjectPool |
Methods
FromInternalContext(InternalRenderGraphContext)
Declaration
public void FromInternalContext(InternalRenderGraphContext context)
Parameters
Type | Name | Description |
---|---|---|
InternalRenderGraphContext | context |