D3D11_BUFFER_UAV_FLAG enumeration (d3d11.h)

Identifies unordered-access view options for a buffer resource.

Syntax

typedef enum D3D11_BUFFER_UAV_FLAG {
  D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
  D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
  D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4
} ;

Constants

 
D3D11_BUFFER_UAV_FLAG_RAW
Value: 0x1
Resource contains raw, unstructured data. Requires the UAV format to be DXGI_FORMAT_R32_TYPELESS.
For more info about raw viewing of buffers, see Raw Views of Buffers.
D3D11_BUFFER_UAV_FLAG_APPEND
Value: 0x2
Allow data to be appended to the end of the buffer. D3D11_BUFFER_UAV_FLAG_APPEND flag must also be used for
any view that will be used as a AppendStructuredBuffer or a ConsumeStructuredBuffer.
Requires the UAV format to be DXGI_FORMAT_UNKNOWN.
D3D11_BUFFER_UAV_FLAG_COUNTER
Value: 0x4
Adds a counter to the unordered-access-view buffer. D3D11_BUFFER_UAV_FLAG_COUNTER can only be used on a UAV that is a
RWStructuredBuffer and it enables the functionality needed for the IncrementCounter and DecrementCounter methods in HLSL. Requires the UAV format to be DXGI_FORMAT_UNKNOWN.

Requirements

Requirement Value
Header d3d11.h

See also

Core Enumerations

Resource Enumerations