John Kessenich | d1888f8 | 2014-08-18 21:27:53 +0000 | [diff] [blame] | 1 | #version 420 core |
| 2 | |
| 3 | layout(depth_any) out float gl_FragDepth; |
| 4 | layout(depth_greater) out float gl_FragDepth; // ERROR: redeclaration with different qualifier |
| 5 | |
| 6 | void main() |
| 7 | { |
| 8 | gl_FragDepth = 0.3; |
| 9 | } |
| 10 | |
| 11 | layout(depth_less) in float depth; // ERROR: depth_less only applies to gl_FragDepth |
| 12 | layout(depth_any) out float gl_FragDepth; // ERROR, done after use |
John Kessenich | 934855a | 2016-07-19 15:50:58 -0600 | [diff] [blame^] | 13 | |
| 14 | layout(binding=0) uniform atomic_uint a[]; |