Describes the elements in a raw buffer resource to use in a shader-resource view.
typedef struct D3D11_BUFFEREX_SRV {
UINT FirstElement;
UINT NumElements;
UINT Flags;
} D3D11_BUFFEREX_SRV;
FirstElement
The index of the first element to be accessed by the view.
NumElements
The number of elements in the resource.
Flags
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.
This structure is used by D3D11_SHADER_RESOURCE_VIEW_DESC to create a raw view of a buffer.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).