☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
reference
/
opt
/
shaders
/
frag
/
selection-block-dominator.frag
☽
☼
third_party/spirv-cross/reference/opt/shaders/frag/selection-block-dominator.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
3
layout(location = 0) flat in int vIndex;
4
layout(location = 0) out vec4 FragColor;
5
6
void main()
7
{
8
do
9
{
10
if (vIndex != 1)
11
{
12
FragColor = vec4(1.0);
13
break;
14
}
15
FragColor = vec4(10.0);
16
break;
17
} while(false);
18
}
19