dcl_input vThread (sm5 - asm)

Declare compute shader input IDs.

dcl_input {vThreadID.xyz|vThreadGroupID.xyz| vThreadIDInGroup.xyz|vThreadIDInGroupFlattened}

 

ItemDescription

vThreadID | vThreadGroupID | vThreadIDInGroup | vThreadIDInGroupFlattened

[in] The 3-component unsigned 32-bit integer ID value.

 

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:

VertexHullDomainGeometryPixelCompute
X

 

Minimum Shader Model

This instruction is supported in the following shader models:

Shader ModelSupported
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

 

 

 

Community Additions

ADD
Show:
© 2014 Microsoft