void InsertList( CommandList otherBuffer )

robot_2Generated
code_blocksInput

Description

The InsertList method is used to insert the commands from another CommandList into the current CommandList. This allows for the combination of multiple command lists into a single list, which can be useful for organizing and optimizing rendering operations.

Usage

To use the InsertList method, you need to have an instance of CommandList that you want to insert into the current command list. Call the method with the other command list as the parameter.

Example

// Create two command lists
CommandList mainCommandList = new CommandList();
CommandList secondaryCommandList = new CommandList();

// Add commands to the secondary command list
// secondaryCommandList.Blit(...);
// secondaryCommandList.DrawModel(...);

// Insert the secondary command list into the main command list
mainCommandList.InsertList(secondaryCommandList);

// Now mainCommandList contains all commands from both lists