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.

ConsumeStructuredBuffer

An input buffer that appears as a stream the shader may pull values from. Only structured buffers can take T types that are structures.

MethodDescription
Consume Removes a value from the end of the buffer.
GetDimensions Gets the resource dimensions.

 

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

The UAV bound to this resource must have been created with D3D11_BUFFER_UAV_FLAG_APPEND.

For more info about consume structured buffers, see both sections: append and consume buffer and structured buffer.

Minimum Shader Model

This object is supported in the following shader models.

Shader ModelSupported
Shader Model 5 and higher shader modelsyes

 

This object is supported for the following types of shaders:

VertexHullDomainGeometryPixelCompute
xx

 

See also

Shader Model 5 Objects

 

 

Show:
© 2017 Microsoft