glspv.vert 721 B

123456789101112131415161718192021
  1. #version 450
  2. layout(push_constant) uniform Material { int a; } mat; // ERROR, can't use push_constant
  3. layout(set = 0, binding = 0, std140) uniform Bt1 { int a; } bt1;
  4. layout(set = 1, binding = 0, std140) uniform Bt2 { int a; } bt2; // ERROR, set has to be 0
  5. layout(shared) uniform Bt3 { int a; } bt3; // ERROR, no shared, no binding
  6. layout(packed) uniform Bt4 { int a; } bt4; // ERROR, no shared, no binding
  7. void main()
  8. {
  9. gl_VertexIndex; // ERROR, not preset
  10. gl_InstanceIndex; // ERROR, not present
  11. gl_VertexID;
  12. gl_InstanceID;
  13. gl_DepthRangeParameters; // ERROR, not present
  14. }
  15. uniform sampler s; // ERROR, no sampler