book_4_sparkGenerated
code_blocksInput

Description

The Flags property of the CommandList class in the Sandbox.Rendering namespace is used to specify various rendering flags that can alter the behavior of the command list during rendering operations. These flags are defined by the CommandList.Flag enumeration, which provides a set of predefined options that can be combined to customize rendering behavior.

Usage

To use the Flags property, you can set it to one or more values from the CommandList.Flag enumeration. This allows you to control specific aspects of how the command list is processed during rendering. For example, you might use flags to enable or disable certain optimizations or to specify how certain rendering operations should be handled.

Example

// Example of setting the Flags property
CommandList commandList = new CommandList();
commandList.Flags = CommandList.Flag.SomeFlag | CommandList.Flag.AnotherFlag;

// Use the command list in rendering operations
commandList.Blit(someMaterial);