Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D11_BUFFER_SRV structure

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

Syntax


typedef struct D3D11_BUFFER_SRV {
  union {
    UINT FirstElement;
    UINT ElementOffset;
  };
  union {
    UINT NumElements;
    UINT ElementWidth;
  };
} D3D11_BUFFER_SRV;

Members

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.

Remarks

The D3D11_BUFFER_SRV structure is a member of the D3D11_SHADER_RESOURCE_VIEW_DESC structure, which represents a shader-resource view description. You can create a shader-resource view by calling the ID3D11Device::CreateShaderResourceView method.

Requirements

Header

D3D11.h

See also

Resource Structures

 

 

Show:
© 2017 Microsoft