SPIRV-Cross/reference/shaders/desktop-only/frag/depth-less-than.desktop.frag
Hans-Kristian Arntzen 4e5c8d7199 Deal with depth_greater/depth_less qualifiers.
Adds support on HLSL SM 5.0, and fixes bug on GLSL.
Makes sure early fragment tests is tested on MSL as well.
2018-11-12 10:35:36 +01:00

10 lines
131 B
GLSL

#version 450
layout(depth_less) out float gl_FragDepth;
layout(early_fragment_tests) in;
void main()
{
gl_FragDepth = 0.5;
}