unbounded-arrays-for-max-spaces.azsl 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // This file requires a separate register space per SRG and (--max-spaces >= 4) to pass.
  2. ShaderResourceGroupSemantic slot1
  3. {
  4. FrequencyId = 1;
  5. };
  6. ShaderResourceGroupSemantic slot2
  7. {
  8. FrequencyId = 2;
  9. };
  10. ShaderResourceGroupSemantic slot3
  11. {
  12. FrequencyId = 3;
  13. };
  14. ShaderResourceGroupSemantic slot4
  15. {
  16. FrequencyId = 4;
  17. };
  18. ShaderResourceGroup SRG1 : slot1
  19. {
  20. Texture2D<float4> m_texSRVa[]; // Takes t0+, space0
  21. };
  22. ShaderResourceGroup SRG2 : slot2
  23. {
  24. Texture2D<float4> m_texSRVa[]; // Takes t0+, space1, but --max-spaces==1 should fail
  25. };
  26. ShaderResourceGroup SRG3 : slot3
  27. {
  28. Texture2D<float4> m_texSRVa[]; // Takes t0+, space2, but --max-spaces==2 should fail
  29. };
  30. ShaderResourceGroup SRG4 : slot4
  31. {
  32. Texture2D<float4> m_texSRVa[]; // Takes t0+, space3, but --max-spaces==3 should fail
  33. };