Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the elements in a buffer resource to use in a shader-resource view.
typedef struct D3D10_BUFFER_SRV {
union {
UINT FirstElement;
UINT ElementOffset;
};
union {
UINT NumElements;
UINT ElementWidth;
};
} D3D10_BUFFER_SRV;
FirstElement
Type: UINT
Number of bytes between the beginning of the buffer and the first element to access.
ElementOffset
Type: UINT
The offset of the first element in the view to access, relative to element 0.
NumElements
Type: UINT
The total number of elements in the view.
ElementWidth
Type: UINT
The width of each element (in bytes). This can be determined from the format stored in the shader-resource-view description.
The D3D10_BUFFER_SRV structure is a member of the D3D10_SHADER_RESOURCE_VIEW_DESC structure, which represents a shader-resource view description. You can create a shader-resource view by calling the ID3D10Device::CreateShaderResourceView method.
Requirement | Value |
---|---|
Header | d3d10.h |
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!