Description
The DebugName
property of the CommandList
class in the Sandbox.Rendering
namespace is a string property that allows you to assign a human-readable name to a command list. This can be useful for debugging purposes, as it helps identify and differentiate between multiple command lists when analyzing rendering operations.
Usage
To use the DebugName
property, simply set it to a descriptive string that represents the purpose or context of the command list. This can be done at any point after the command list is created, but it is typically set during initialization or setup of rendering operations.
Example
// Example of setting the DebugName property
var commandList = new CommandList();
commandList.DebugName = "Main Scene Rendering";
// Later, you can retrieve the DebugName for logging or debugging
string name = commandList.DebugName;
// Use 'name' for logging or debugging purposes