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.forwardFun.frag
1
#version 140
\r
2
\r
3
precision mediump float;
\r
4
\r
5
in vec4 bigColor;
\r
6
in vec4 BaseColor;
\r
7
in float d;
\r
8
\r
9
void bar();
\r
10
float foo(vec4);
\r
11
float unreachableReturn();
\r
12
\r
13
void main()
\r
14
{
\r
15
vec4 color = vec4(foo(BaseColor));
\r
16
\r
17
bar();
\r
18
float f = unreachableReturn();
\r
19
\r
20
gl_FragColor = color * f;
\r
21
}
\r
22
\r
23
void bar()
\r
24
{
\r
25
}
\r
26
\r
27
float unreachableReturn()
\r
28
{
\r
29
bar();
\r
30
if (d < 4.2)
\r
31
return 1.2;
\r
32
else
\r
33
return 4.5;
\r
34
}
\r
35
\r
36
float foo(vec4 bar)
\r
37
{
\r
38
return bar.x + bar.y;
\r
39
}
\r