third_party/spirv-cross/reference/shaders-hlsl/frag/depth-greater-than.frag
raw| 1 | static float gl_FragDepth; |
| 2 | struct SPIRV_Cross_Output |
| 3 | { |
| 4 | float gl_FragDepth : SV_DepthGreaterEqual; |
| 5 | }; |
| 6 | |
| 7 | void frag_main() |
| 8 | { |
| 9 | gl_FragDepth = 0.5f; |
| 10 | } |
| 11 | |
| 12 | [earlydepthstencil] |
| 13 | SPIRV_Cross_Output main() |
| 14 | { |
| 15 | frag_main(); |
| 16 | SPIRV_Cross_Output stage_output; |
| 17 | stage_output.gl_FragDepth = gl_FragDepth; |
| 18 | return stage_output; |
| 19 | } |