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.
Values that identify resource types that can be bound to a shader and that are reflected as part of the resource description for the shader.
Note
For programming with Direct3D 10, this API has a type alias that begins D3D10_ instead of D3D_. These Direct3D 10 type aliases are defined in d3d10.h, d3d10misc.h, and d3d10shader.h.
Syntax
typedef enum _D3D_SHADER_INPUT_TYPE {
D3D_SIT_CBUFFER = 0,
D3D_SIT_TBUFFER,
D3D_SIT_TEXTURE,
D3D_SIT_SAMPLER,
D3D_SIT_UAV_RWTYPED,
D3D_SIT_STRUCTURED,
D3D_SIT_UAV_RWSTRUCTURED,
D3D_SIT_BYTEADDRESS,
D3D_SIT_UAV_RWBYTEADDRESS,
D3D_SIT_UAV_APPEND_STRUCTURED,
D3D_SIT_UAV_CONSUME_STRUCTURED,
D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER,
D3D_SIT_RTACCELERATIONSTRUCTURE,
D3D_SIT_UAV_FEEDBACKTEXTURE,
D3D10_SIT_CBUFFER,
D3D10_SIT_TBUFFER,
D3D10_SIT_TEXTURE,
D3D10_SIT_SAMPLER,
D3D11_SIT_UAV_RWTYPED,
D3D11_SIT_STRUCTURED,
D3D11_SIT_UAV_RWSTRUCTURED,
D3D11_SIT_BYTEADDRESS,
D3D11_SIT_UAV_RWBYTEADDRESS,
D3D11_SIT_UAV_APPEND_STRUCTURED,
D3D11_SIT_UAV_CONSUME_STRUCTURED,
D3D11_SIT_UAV_RWSTRUCTURED_WITH_COUNTER
} D3D_SHADER_INPUT_TYPE;
Constants
D3D_SIT_CBUFFERValue: 0 The shader resource is a constant buffer. |
D3D_SIT_TBUFFERThe shader resource is a texture buffer. |
D3D_SIT_TEXTUREThe shader resource is a texture. |
D3D_SIT_SAMPLERThe shader resource is a sampler. |
D3D_SIT_UAV_RWTYPEDThe shader resource is a read-and-write buffer or texture. |
D3D_SIT_STRUCTUREDThe shader resource is a structured buffer. For more information about structured buffer, see the Remarks section. |
D3D_SIT_UAV_RWSTRUCTUREDThe shader resource is a read-and-write structured buffer. |
D3D_SIT_BYTEADDRESSThe shader resource is a byte-address buffer. |
D3D_SIT_UAV_RWBYTEADDRESSThe shader resource is a read-and-write byte-address buffer. |
D3D_SIT_UAV_APPEND_STRUCTUREDThe shader resource is an append-structured buffer. |
D3D_SIT_UAV_CONSUME_STRUCTUREDThe shader resource is a consume-structured buffer. |
D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTERThe shader resource is a read-and-write structured buffer that uses the built-in counter to append or consume. |
D3D10_SIT_CBUFFERThe shader resource is a constant buffer. |
D3D10_SIT_TBUFFERThe shader resource is a texture buffer. |
D3D10_SIT_TEXTUREThe shader resource is a texture. |
D3D10_SIT_SAMPLERThe shader resource is a sampler. |
D3D11_SIT_UAV_RWTYPEDThe shader resource is a read-and-write buffer. |
D3D11_SIT_STRUCTUREDThe shader resource is a structured buffer. For more information about structured buffer, see the Remarks section. |
D3D11_SIT_UAV_RWSTRUCTUREDThe shader resource is a read-and-write structured buffer. |
D3D11_SIT_BYTEADDRESSThe shader resource is a byte-address buffer. |
D3D11_SIT_UAV_RWBYTEADDRESSThe shader resource is a read-and-write byte-address buffer. |
D3D11_SIT_UAV_APPEND_STRUCTUREDThe shader resource is an append-structured buffer. |
D3D11_SIT_UAV_CONSUME_STRUCTUREDThe shader resource is a consume-structured buffer. |
D3D11_SIT_UAV_RWSTRUCTURED_WITH_COUNTERThe shader resource is a read-and-write structured buffer that uses the built-in counter to append or consume. |
Remarks
D3D_SHADER_INPUT_TYPE-typed values are specified in the Type member of the D3D11_SHADER_INPUT_BIND_DESC structure.
Requirements
| Requirement | Value |
|---|---|
| Header | d3dcommon.h |