Interface IRenderContextFactory
Begins the render passes and encoders that a frame draws with, and builds and runs its frame graphs.
public interface IRenderContextFactory
Methods
Begin(RenderPassTag?, string)
Begins an encoder for drawing in the current frame. Dispose the scope to submit what it recorded.
IRenderEncoderScope Begin(RenderPassTag? passTag = null, string passName = null)
Parameters
passTagRenderPassTag?passNamestring
Returns
BeginRenderPass(RenderPassDescriptor)
Begins a render pass that draws into the target descriptor describes. Dispose the returned scope to end the pass.
RenderPassScope BeginRenderPass(RenderPassDescriptor descriptor)
Parameters
descriptorRenderPassDescriptor
Returns
CreateFrameGraph(FrameGraphValidationMode)
Creates a new frame-graph builder for the current frame.
FrameGraphBuilder CreateFrameGraph(FrameGraphValidationMode validationMode = FrameGraphValidationMode.Disabled)
Parameters
validationModeFrameGraphValidationMode
Returns
Execute(FrameGraph)
Executes the provided frame graph, automatically managing render-pass scopes.
void Execute(FrameGraph frameGraph)
Parameters
frameGraphFrameGraph
SetGameTime(IGameTime)
Sets the game time that encoders begin with, so that shaders receive the total time.
void SetGameTime(IGameTime gameTime)
Parameters
gameTimeIGameTime