Skip to main content
Describes the elements in a buffer to use in a unordered-access view.

Syntax

Members

FirstElement
Type: UINT64
The zero-based index of the first element to be accessed. NumElements
Type: UINT
The number of elements in the resource. For structured buffers, this is the number of structures in the buffer. StructureByteStride
Type: UINT
The size of each element in the buffer structure (in bytes) when the buffer represents a structured buffer. CounterOffsetInBytes
Type: UINT64
The counter offset, in bytes. Flags
Type: D3D12_BUFFER_UAV_FLAGS
A D3D12_BUFFER_UAV_FLAGS-typed value that specifies the view options for the resource.

Remarks

Use this structure with a D3D12_UNORDERED_ACCESS_VIEW_DESC structure to view the resource as a buffer. If StructureByteStride value is not 0, a view of a structured buffer is created and the D3D12_UNORDERED_ACCESS_VIEW_DESC::Format field must be DXGI_FORMAT_UNKNOWN. If StructureByteStride is 0, a typed view of a buffer is created and a format must be supplied. The specified format for the typed view must be supported by the hardware. More information on this topic can be found in the Typed unordered access view (UAV) loads page.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

Core Structures Typed unordered access view (UAV) loads
Last modified on August 20, 2026