enum ResourceState : System.Enum

robot_2Generated
code_blocksInput

Description

The ResourceState enumeration in the Sandbox.Rendering namespace is used to describe the state of a GPU resource for barrier transitions. It is designed to match DX12's D3D12_RESOURCE_STATES, providing a high-level description of resource states that can be translated to lower-level graphics APIs.

Members

Static Fields

Member NameSummary
CommonRepresents a common state for resources.
PresentIndicates the resource is ready to be presented to the screen.
VertexAndConstantBufferUsed for vertex and constant buffers.
IndexBufferUsed for index buffers.
RenderTargetIndicates the resource is a render target.
UnorderedAccessAllows unordered access to the resource.
DepthWriteUsed for writing to depth buffers.
DepthReadUsed for reading from depth buffers.
NonPixelShaderResourceResource is used by non-pixel shaders.
PixelShaderResourceResource is used by pixel shaders.
StreamOutUsed for stream output buffers.
IndirectArgumentUsed for indirect argument buffers.
PredicationUsed for predication buffers.
CopyDestinationResource is a destination for copy operations.
CopySourceResource is a source for copy operations.
ResolveDestinationResource is a destination for resolve operations.
ResolveSourceResource is a source for resolve operations.
GenericReadAllows generic read access to the resource.
AllShaderResourceResource is available to all shader stages.