Enum BarrierLayout
Defines the memory layout of a graphics resource for barrier transitions. This is a cross-platform abstraction over D3D12 Enhanced Barrier layouts and Vulkan image layouts.
public enum BarrierLayout
- Extension Methods
Fields
Common = 1General-purpose layout compatible with all operations.
CopyDest = 8The resource is used as the destination of a copy operation.
CopySource = 7The resource is used as the source of a copy operation.
DepthStencilRead = 4The resource is used as a read-only depth-stencil buffer. Covers reading it as a shader resource at the same time.
DepthStencilWrite = 3The resource is used as a writable depth-stencil buffer. Covers reads as well as writes, because the depth and stencil tests read the attachment.
Present = 9The resource is used for presentation to the screen.
RenderTarget = 2The resource is used as a render target. Covers reads as well as writes, because blending and a load operation that preserves the existing contents both read the attachment.
ResolveDest = 11The resource is used as the destination of a multisample resolve operation.
ResolveSource = 10The resource is used as the source of a multisample resolve operation.
ShaderResource = 5The resource is used as a shader resource (SRV) for reading.
Undefined = 0The resource layout is undefined. Contents may be discarded.
UnorderedAccess = 6The resource is used for unordered access (UAV) for reading and writing.