compute-entries.azsl 819 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. groupshared uint gs_GpShared[1024];
  2. // MainCS1 is a valid cs entry
  3. [numthreads(1, 1, 1)]
  4. void MainCS1()
  5. {
  6. gs_GpShared[0] = 1;
  7. }
  8. // MainCS2 is a valid cs entry
  9. [numthreads(8, 1, 1)]
  10. void MainCS2()
  11. {
  12. gs_GpShared[0] = 1;
  13. }
  14. // MainCS3 is a valid cs entry
  15. [numthreads(16, 4, 1)]
  16. void MainCS3()
  17. {
  18. gs_GpShared[0] = 1;
  19. }
  20. // MainCS4 is a valid cs entry
  21. [numthreads(1, 1, 64)]
  22. void MainCS4()
  23. {
  24. gs_GpShared[0] = 1;
  25. }
  26. struct VertexInput1 {
  27. float3 m_position : POSITION;
  28. float m_color[4] : COLOR;
  29. };
  30. struct VertexOutput1 { float4 m_position : SV_Position; };
  31. // MainVS1 is a valid vs entry, but has no numthreads
  32. VertexOutput1 MainVS1(VertexInput1 input, uint vtxIndex : SV_VertexID)
  33. {
  34. VertexOutput1 output;
  35. output.m_position = float4(input.m_position, 1.0);
  36. return output;
  37. }