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 #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git]
/
Test
/
hlsl.switch.frag
1
float4 PixelShaderFunction(float4 input, int c, int d) : COLOR0
2
{
3
switch(c)
4
{
5
}
6
7
switch(c)
8
{
9
default:
10
}
11
12
switch (c) {
13
case 1:
14
++input;
15
break;
16
case 2:
17
--input;
18
break;
19
}
20
21
[branch] switch (c) {
22
case 1:
23
++input;
24
break;
25
case 2:
26
switch (d) {
27
case 2:
28
input += 2.0;
29
break;
30
case 3:
31
input += 3.0;
32
break;
33
}
34
break;
35
default:
36
input += 4.0;
37
}
38
39
switch (c) {
40
case 1:
41
}
42
43
switch (c) {
44
case 1:
45
case 2:
46
case 3:
47
++input;
48
break;
49
case 4:
50
case 5:
51
--input;
52
}
53
54
return input;
55
}