semantic.dispatch-thread-id.cs.hlsl 290 B

1234567
  1. // Run: %dxc -T cs_6_0 -E main
  2. // CHECK: OpEntryPoint GLCompute %main "main" %gl_GlobalInvocationID
  3. // CHECK: OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
  4. // CHECK: %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
  5. void main(uint3 tid : SV_DispatchThreadId) {}