420.frag 395 B

123456789101112131415
  1. #version 420 core
  2. layout(depth_any) out float gl_FragDepth;
  3. layout(depth_greater) out float gl_FragDepth; // ERROR: redeclaration with different qualifier
  4. void main()
  5. {
  6. gl_FragDepth = 0.3;
  7. }
  8. layout(depth_less) in float depth; // ERROR: depth_less only applies to gl_FragDepth
  9. layout(depth_any) out float gl_FragDepth; // ERROR, done after use
  10. layout(binding=0) uniform atomic_uint a[];