D3D12_BUFFER_SRV structure

Describes the elements in a buffer resource to use in a shader-resource view.

Syntax

typedef struct D3D12_BUFFER_SRV {
  UINT64                 FirstElement;
  UINT                   NumElements;
  UINT                   StructureByteStride;
  D3D12_BUFFER_SRV_FLAGS Flags;
} D3D12_BUFFER_SRV;

Members

FirstElement

The index of the first element to be accessed by the view.

NumElements

The number of elements in the resource.

StructureByteStride

The size of each element in the buffer structure (in bytes) when the buffer represents a structured buffer.

Flags

A D3D12_BUFFER_SRV_FLAGS-typed value that identifies view options for the buffer. Currently, the only option is to identify a raw view of the buffer. For more info about raw viewing of buffers, see Raw Views of Buffers.

Remarks

This structure is used by D3D12_SHADER_RESOURCE_VIEW_DESC to create a view of a buffer.

Requirements

   
Header d3d12.h

See Also

Core Structures