D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW structure (d3d10umddi.h)
The D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW structure describes a buffer that is used to create a shader resource view in a call to the CreateShaderResourceView(D3D11) function.
Syntax
typedef struct D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW {
union {
[in] UINT FirstElement;
[in] UINT ElementOffset;
};
union {
[in] UINT NumElements;
[in] UINT ElementWidth;
};
[in] UINT Flags;
} D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW;
Members
[in] FirstElement
The offset, in bytes, to the first element in the buffer.
[in] ElementOffset
The offset, in bytes, to the first element in the buffer.
[in] NumElements
The number of elements in the buffer.
[in] ElementWidth
The width, in elements, in the buffer.
[in] Flags
A valid bitwise OR of flag values that describe the buffer. Currently, the Direct3D runtime supports only the D3D11_DDI_BUFFEREX_SRV_FLAG_RAW (0x00000001) flag. If this flag is set, the buffer is in raw format.
Requirements
Requirement | Value |
---|---|
Minimum supported client | D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW is supported beginning with the Windows 7 operating system. |
Header | d3d10umddi.h (include D3d10umddi.h) |
See also
CalcPrivateShaderResourceViewSize(D3D11)