File: hlsl.forLoop.frag

package info (click to toggle)
glslang 16.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,720 kB
  • sloc: cpp: 92,305; yacc: 4,320; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (59 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
void f0() {
    for (;;) ;
}

void f1(float4 input) {
    for (++input; ; ) ;
}

void f2(float4 input) {
    [unroll] for (; any(input != input); ) {}
}

float f3(float4 input) {
    for (; any(input != input); ) { return -input; }
}

float f4(float4 input) {
    for (--input; any(input != input); input += 2) { return -input; }
}

void f5(float4 input) {
    for (;;) if (input.x > 2.0) break;
}

void f6(float4 input) {
    for (;;) if (input.x > 2.0) continue;
}

void f99() {
    for (int first = 0, second = 1; ;) first + second;
}

void f100(float ii) {
    for (--ii, --ii, --ii;;) ii;
}

float4 PixelShaderFunction(float4 input) : COLOR0
{
    f0();
    f1(input);
    f2(input);
    f3(input);
    f4(input);
    f5(input);
    f6(input);

    float ii;
    for (int ii = -1; ii < 3; ++ii) if (ii == 2) continue;
    --ii;

    f99();

    for ( int i = 0, count = int(ii); i < count; i++ );
    for (float first = 0, second[2], third; first < second[0]; ++second[1]) first + second[1] + third;

    f100(ii);

    return input;
}