The AddCommandList
method allows you to add a rendering command list to a specific stage of the rendering pipeline. This is useful for customizing the rendering process by injecting custom commands at different stages.
The AddCommandList
method allows you to add a rendering command list to a specific stage of the rendering pipeline. This is useful for customizing the rendering process by injecting custom commands at different stages.
To use the AddCommandList
method, you need to provide a CommandList
object, a Stage
enumeration value indicating the stage of the rendering pipeline, and an integer order
to specify the execution order of the command list within that stage.
// Example of adding a command list to a camera component CameraComponent camera = new CameraComponent(); CommandList commandList = new CommandList(); Stage renderStage = Stage.Opaque; int order = 0; // Add the command list to the camera's rendering pipeline camera.AddCommandList(commandList, renderStage, order);