Description
The AddCommandList
method is used to add a rendering command list to a camera component. This allows you to specify custom rendering commands that should be executed at a particular stage of the rendering pipeline, with a specific order of execution.
Usage
To use the AddCommandList
method, you need to provide a CommandList
object that contains the rendering commands, a Stage
indicating when the commands should be executed, and an order
integer to determine the sequence of execution relative to other command lists.
Example
// Example of adding a command list to a camera component
CameraComponent camera = new CameraComponent();
CommandList commandList = new CommandList();
Stage renderStage = Stage.Opaque;
int executionOrder = 1;
camera.AddCommandList(commandList, renderStage, executionOrder);