title | description | ms.assetid | ms.topic | ms.date |
---|---|---|---|---|
dcl_input vThread (sm5 - asm) |
Declare compute shader input IDs. |
C041863A-32B0-4588-A1A9-E416AF9B723C |
reference |
05/31/2018 |
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 |
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 |