mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 00:40:09 +00:00
20 lines
325 B
GLSL
20 lines
325 B
GLSL
|
static float gl_FragDepth;
|
||
|
struct SPIRV_Cross_Output
|
||
|
{
|
||
|
float gl_FragDepth : SV_DepthLessEqual;
|
||
|
};
|
||
|
|
||
|
void frag_main()
|
||
|
{
|
||
|
gl_FragDepth = 0.5f;
|
||
|
}
|
||
|
|
||
|
[earlydepthstencil]
|
||
|
SPIRV_Cross_Output main()
|
||
|
{
|
||
|
frag_main();
|
||
|
SPIRV_Cross_Output stage_output;
|
||
|
stage_output.gl_FragDepth = gl_FragDepth;
|
||
|
return stage_output;
|
||
|
}
|