Method RecordAndExecute
RecordAndExecute(in RenderGraphParameters)
Starts the recording of the the render graph and then automatically execute when the return value goes out of scope. This must be called before adding any pass to the render graph.
Declaration
public RenderGraphExecution RecordAndExecute(in RenderGraphParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
RenderGraphParameters | parameters | Parameters necessary for the render graph execution. |
Returns
Type | Description |
---|---|
RenderGraphExecution |
Examples
This shows how to increment an integer.
using (renderGraph.RecordAndExecute(parameters))
{
// Add your render graph passes here.
}