class CommandList

robot_2Generated
code_blocksInput

Description

The CommandList class in the Sandbox.Rendering namespace is a sealed class that provides a set of methods and properties for managing rendering commands. It is used to issue draw calls, set rendering states, and manage resources during rendering operations.

Members

Instance Members

Member NameSummary
ResetResets the command list to its initial state.
BlitCopies a source texture to a destination render target using a specified material.
DrawQuadDraws a quad with a specified material, rectangle, and color.
DrawScreenQuadDraws a full-screen quad using a specified material and color.
SetSets a shader parameter using a token and a value. Overloaded for various types.
SetComboSets a shader combo using a token and a value.
SetConstantBufferSets a constant buffer using a token and data.
SetGlobalSets a global shader parameter using a token and a value. Overloaded for various types.
GrabFrameTextureGrabs a frame texture for a specified token, with optional mipmaps.
InsertListInserts another command list into this one.
DrawModelDraws a model with a specified transform and render attributes.
DrawModelInstancedDraws a model with instancing using a span of transforms and render attributes.
DrawModelInstancedIndirectDraws a model with instancing using indirect parameters from a buffer.
GetRenderTargetGets a render target handle with specified parameters.
ReleaseRenderTargetReleases a render target handle.
DispatchComputeDispatches a compute shader with specified dimensions.
TransferRenderTargetTransfers a render target to another command list.

Properties

Property NameSummary
DebugNameGets or sets the debug name of the command list.
EnabledGets or sets a value indicating whether the command list is enabled.
FlagsGets or sets the flags associated with the command list.
ViewportSizeA handle to the viewport size.