D3D11_BUFFEREX_SRV structure (d3d11.h)
Describes the elements in a raw buffer resource to use in a shader-resource view.
Syntax
typedef struct D3D11_BUFFEREX_SRV {
UINT FirstElement;
UINT NumElements;
UINT Flags;
} D3D11_BUFFEREX_SRV;
Members
FirstElement
Type: UINT
The index of the first element to be accessed by the view.
NumElements
Type: UINT
The number of elements in the resource.
Flags
Type: UINT
A D3D11_BUFFEREX_SRV_FLAG-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 D3D11_SHADER_RESOURCE_VIEW_DESC to create a raw view of a buffer.
Requirements
Requirement | Value |
---|---|
Header | d3d11.h |