dcl_input vThread (sm5 - asm)
Declare compute shader input IDs.
dcl_input vThread |
---|
Item | Description |
---|---|
vThread |
[in] The 3-component unsigned 32-bit integer ID value. One of:
|
dcl_input is an existing declaration in other shader stages. It is used in the compute shader to declare the various 3-component unsigned 32-bit integer ID values unique to the compute shader. They are:
- vThreadID.xyz
- vGroupID.xyz
- vThreadIDInGroup.xyz
- vThreadIDInGroupFlattened (single component)
This instruction applies to the following shader stages:
Vertex | Hull | Domain | Geometry | Pixel | Compute |
---|---|---|---|---|---|
X |
Minimum Shader Model
This instruction is supported in the following shader models:
Shader Model | Supported |
---|---|
Shader Model 5 | yes |
Shader Model 4.1 | no |
Shader Model 4 | no |
Shader Model 3 (DirectX HLSL) | no |
Shader Model 2 (DirectX HLSL) | no |
Shader Model 1 (DirectX HLSL) | no |