StructuredBuffer

A read-only buffer, which can take a T type that is a structure.

Method Description
GetDimensions Gets the resource dimensions.
Load Reads buffer data.
Operator[] Returns a read-only resource variable.

The SRV format bound to this resource needs to be created with the DXGI_FORMAT_UNKNOWN format.

To find out more about structured buffers, see the overview material.

Minimum Shader Model

This object is supported in the following shader models.

Shader Model Supported
Shader Model 5 and higher shader models Shader Model 4 (Available for compute and pixel shaders in Direct3D 11 on some Direct3D 10 devices.)
yes

This object is supported for the following types of shaders.

Vertex Hull Domain Geometry Pixel Compute
x x x x x x

See also

Shader Model 5 Objects