A read-only buffer that is indexed in bytes.

Method Description
GetDimensions Gets the resource dimensions.
Load Gets one value.
Load2 Gets two values.
Load3 Gets three values.
Load4 Gets four values.

You can use the ByteAddressBuffer object type when you work with raw buffers. For more info about raw viewing of buffers, see Raw Views of Buffers.

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 through the Direct3D 11 API by using 10.0 or 10.1 feature level (D3D_FEATURE_LEVEL_10_X) on devices that support compute shaders. For more info about compute shader support on downlevel hardware, see Compute Shaders on Downlevel Hardware.)

This object is supported for the following types of shaders:

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

For more info about a byte address buffer, see the byte addressable resource type.

Shader Model 5 also implements a read-write byte address buffer.

See also

Shader Model 5 Objects