third_party/spirv-cross/reference/opt/shaders-msl/frag/write-depth-in-function.frag
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct main0_out |
| 7 | { |
| 8 | float FragColor [[color(0)]]; |
| 9 | float gl_FragDepth [[depth(any)]]; |
| 10 | }; |
| 11 | |
| 12 | fragment main0_out main0() |
| 13 | { |
| 14 | main0_out out = {}; |
| 15 | out.FragColor = 1.0; |
| 16 | out.gl_FragDepth = 0.20000000298023223876953125; |
| 17 | return out; |
| 18 | } |
| 19 |