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 #2892 from greg-lunarg/mb
[platform/upstream/glslang.git]
/
Test
/
hlsl.implicitBool.frag
1
float condf;
\r
2
int condi;
\r
3
float1 condf1;
\r
4
int1 condi1;
\r
5
\r
6
float4 main() : SV_Target0
\r
7
{
\r
8
float4 a = float4(2.0, 2.0, 2.0, 2.0);
\r
9
if (condi)
\r
10
return a + 1.0;
\r
11
if (condf)
\r
12
return a + 2.0;
\r
13
if (condf1)
\r
14
return a + 3.0;
\r
15
if (condi1)
\r
16
return a + 4.0;
\r
17
if (condi && condf || condf1)
\r
18
return a + 5.0;
\r
19
\r
20
float f = condf;
\r
21
while (f) { --f; }
\r
22
\r
23
int i = condi;
\r
24
do { --i; } while (i);
\r
25
\r
26
for (; i; ) { --i; }
\r
27
\r
28
float g = condf ? 7.0 : 8.0;
\r
29
a += g;
\r
30
\r
31
return a - 1.0;
\r
32
}