vulkan.ast.vert 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #version 450
  2. layout(constant_id = 200) const float scf1 = 1.0;
  3. layout(constant_id = 201) const bool scbt = true;
  4. layout(constant_id = 202) const int sci2 = 2;
  5. void main()
  6. {
  7. bool(scf1); // not a spec-const
  8. bool(scbt); // spec-const
  9. bool(sci2); // spec-const
  10. float(scf1); // not a spec-const
  11. float(scbt); // not a spec-const
  12. float(sci2); // not a spec-const
  13. int(scf1); // not a spec-const
  14. int(scbt); // spec-const
  15. int(sci2); // spec-const
  16. scf1 * scf1; // not a spec-const
  17. scbt || scbt; // spec-const
  18. sci2 * sci2; // spec-const
  19. scf1 + sci2; // implicit conversion not a spec-const
  20. -scf1; // not a spec-const
  21. !scbt; // spec-const
  22. -sci2; // spec-const
  23. scf1 > scf1; // not a spec-const
  24. sci2 > sci2; // spec-const
  25. scf1 != scf1; // not a spec-const
  26. scbt != scbt; // spec-const
  27. sci2 != sci2; // spec-const
  28. ivec2(sci2, sci2); // spec-const
  29. ivec2[2](ivec2(sci2, sci2), ivec2(sci2, sci2)); // not a spec-const
  30. vec2(scf1, scf1); // not spec-const
  31. vec2[2](vec2(scf1, scf1), vec2(scf1, scf1)); // not a spec-const
  32. }