☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
shaders-msl
/
frag
/
write-depth-in-function.frag
☽
☼
third_party/spirv-cross/shaders-msl/frag/write-depth-in-function.frag
code
plain
raw
Apache-2.0
2012-2021, The Android Open Source Project; 2015-2021, Google LLC; 2017, Romain Guy
debian/copyright
1
#version 450
2
layout(location = 0) in float v;
3
layout(location = 0) out float FragColor;
4
5
void set_output_depth()
6
{
7
gl_FragDepth = 0.2;
8
}
9
10
void main()
11
{
12
FragColor = 1.0;
13
set_output_depth();
14
}