Table of Contents

Enum BarrierLayout

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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 = 1

General-purpose layout compatible with all operations.

CopyDest = 8

The resource is used as the destination of a copy operation.

CopySource = 7

The resource is used as the source of a copy operation.

DepthStencilRead = 4

The resource is used as a read-only depth-stencil buffer.

DepthStencilWrite = 3

The resource is used as a writable depth-stencil buffer.

Present = 9

The resource is used for presentation to the screen.

RenderTarget = 2

The resource is used as a render target.

ResolveDest = 11

The resource is used as the destination of a multisample resolve operation.

ResolveSource = 10

The resource is used as the source of a multisample resolve operation.

ShaderResource = 5

The resource is used as a shader resource (SRV) for reading.

Undefined = 0

The resource layout is undefined. Contents may be discarded.

UnorderedAccess = 6

The resource is used for unordered access (UAV) for reading and writing.