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 #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git]
/
Test
/
spv.voidFunction.frag
1
#version 400
\r
2
\r
3
in vec4 bigColor;
\r
4
in vec4 BaseColor;
\r
5
in float d;
\r
6
\r
7
float bar = 2.0;
\r
8
\r
9
void foo()
\r
10
{
\r
11
bar++;
\r
12
\r
13
return;
\r
14
}
\r
15
\r
16
void foo2()
\r
17
{
\r
18
bar++;
\r
19
}
\r
20
\r
21
void main()
\r
22
{
\r
23
vec4 outColor = bigColor;
\r
24
\r
25
foo();
\r
26
\r
27
foo2();
\r
28
\r
29
outColor.x += bar;
\r
30
\r
31
gl_FragColor = outColor;
\r
32
\r
33
return;
\r
34
}
\r