projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2908 from Biswa96/cmake-spirv-remap
[platform/upstream/glslang.git]
/
Test
/
spv.100ops.frag
1
#version 310 es
\r
2
\r
3
lowp float foo();
\r
4
\r
5
in lowp float low, high;
\r
6
\r
7
lowp float face1 = 11.0;
\r
8
\r
9
out lowp vec4 Color;
\r
10
\r
11
void main()
\r
12
{
\r
13
int z = 3;
\r
14
\r
15
if (2.0 * low + 1.0 < high)
\r
16
++z;
\r
17
\r
18
Color = face1 * vec4(z) + foo();
\r
19
}
\r
20
\r
21
lowp float face2 = -2.0;
\r
22
\r
23
lowp float foo()
\r
24
{
\r
25
// testing if face2 initializer insert logic is correct in main
\r
26
return face2;
\r
27
}
\r