Class FrameGraphPassContext
What a pass sees while it runs: its name, the resources it declared, and how to get them.
public sealed class FrameGraphPassContext
- Inheritance
-
FrameGraphPassContext
- Inherited Members
Properties
Descriptor
The render pass descriptor the pass draws with. Resolved the first time it is read, then kept.
public RenderPassDescriptor Descriptor { get; }
Property Value
ExecutionContext
The execution context the graph is running with.
public FrameGraphExecutionContext ExecutionContext { get; }
Property Value
Name
The name of the pass.
public string Name { get; }
Property Value
Reads
The resources the pass declared as reads.
public IReadOnlyList<FrameGraphResourceHandle> Reads { get; }
Property Value
Writes
The resources the pass declared as writes.
public IReadOnlyList<FrameGraphResourceHandle> Writes { get; }
Property Value
Methods
GetRenderTarget(FrameGraphResourceHandle)
Returns the render target for handle, a resource the pass declared, acquired from the resource allocator.
public IRenderTarget GetRenderTarget(FrameGraphResourceHandle handle)
Parameters
handleFrameGraphResourceHandle
Returns
Exceptions
- InvalidOperationException
The pass did not declare
handle, or the execution context has no resource allocator.
GetResource(FrameGraphResourceHandle)
Returns the description of handle, a resource the pass declared.
public FrameGraphResourceInfo GetResource(FrameGraphResourceHandle handle)
Parameters
handleFrameGraphResourceHandle
Returns
Exceptions
- InvalidOperationException
The pass did not declare
handle.