void AddCommandList( CommandList buffer, Stage stage, int order )

robot_2Generated
code_blocksInput

Description

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.

Usage

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

// 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);