VariantsRanges.azsl 472 B

123456789101112131415161718192021222324
  1. /*
  2. * Tests the use of ranges for integer options
  3. *
  4. * Global constants and SRG constants marked with the "option" qualifier are treated as variant options
  5. */
  6. [range(1, 64)]
  7. option int IntOptionA = 42;
  8. [range(5, 8)]
  9. option int IntOptionB = 7;
  10. [range(5, 9)]
  11. option int IntOptionC = 9;
  12. ShaderResourceGroupSemantic ExampleBinding
  13. {
  14. FrequencyId = 0;
  15. ShaderVariantFallback = 64;
  16. };
  17. ShaderResourceGroup ExampleSRG : ExampleBinding
  18. { };