The Flags
property of the CommandList
class in the Sandbox.Rendering
namespace is used to get or set the rendering flags associated with a command list. These flags can be used to control various rendering behaviors and optimizations.
The Flags
property of the CommandList
class in the Sandbox.Rendering
namespace is used to get or set the rendering flags associated with a command list. These flags can be used to control various rendering behaviors and optimizations.
To use the Flags
property, you need to have an instance of the CommandList
class. You can then access the property to either retrieve the current flags or assign new flags to modify the rendering behavior.
// Example of setting and getting the Flags property // Create a new CommandList instance CommandList commandList = new CommandList(); // Set the Flags property commandList.Flags = CommandList.Flag.SomeFlag; // Get the current Flags var currentFlags = commandList.Flags; // Use the currentFlags for conditional logic if ((currentFlags & CommandList.Flag.SomeFlag) != 0) { // Perform some action based on the flag }