SPIRV-Cross/reference/shaders-msl/frag/depth-less-than.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

18 lines
262 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float gl_FragDepth [[depth(less)]];
};
[[ early_fragment_tests ]] fragment main0_out main0()
{
main0_out out = {};
out.gl_FragDepth = 0.5;
return out;
}