lib_cs_entry3.hlsl 814 B

12345678910111213141516171819202122232425
  1. // RUN: %dxc -T lib_6_3 -auto-binding-space 11 %s | FileCheck %s
  2. // Make sure entry function exist.
  3. // CHECK: @entry(
  4. // CHECK: @entry2(
  5. // Make sure function props exist.
  6. // CHECK: !dx.entryPoints = !{{{.*}}, {{.*}}, {{.*}}}
  7. // Make sure function props is correct for [numthreads(8,8,1)].
  8. // CHECK: @entry, !"entry", null, null, [[PROPS:![0-9]+]]}
  9. // CHECK: [[PROPS]] = !{i32 8, i32 5, i32 4, [[CS:![0-9]+]],
  10. // CHECK: [[CS]] = !{i32 8, i32 8, i32 1}
  11. // CHECK: @entry2, !"entry2", null, null, [[PROPS]]
  12. [numthreads(8,8,1)]
  13. void entry( uint2 tid : SV_DispatchThreadID, uint2 gid : SV_GroupID, uint2 gtid : SV_GroupThreadID, uint gidx : SV_GroupIndex )
  14. {
  15. }
  16. [numthreads(8,8,1)]
  17. void entry2( uint2 tid : SV_DispatchThreadID, uint2 gid : SV_GroupID, uint2 gtid : SV_GroupThreadID, uint gidx : SV_GroupIndex )
  18. {
  19. }