File: preprocessor.simple.vert.out

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 (71 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (7)
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
60
61
62
63
64
65
66
67
68
69
70
71
#version 310 es












             float fn(float x) { return x + 4.0; }

int main() {
  gl_Position = vec4(1);
  gl_Position = clamp(1, 2, 3);
  gl_Position = vec4(1);
  gl_Position = vec4(1, 2);
  gl_Position = vec4(fn(3));
  [].++ --
  + - * % / - ! ~
  << >> < > <= >=
  == !=
  & ^ | && ^^ || ? :
  += -= *= /= %= <<= >>= &= |= ^=
  1.2 2E10 5u - 5l f
}

struct S {
    int member1;
    float member2;
    vec4 member3;
};













void bar(int x) { }

void foo()
{
    S s;
    s.member2 + s.member1;
    s.member3.zyx;
    s.member2.xxyz;
    s.member2.yyz;
    s.member2.xxyz();
    s.member2.yzy;
    for (int i = 0; i < 100; i = i + 1) {
      bar(i)
    }
            vec3 a = vec3(0); vec3 b = a.zxyz; vec3 b = a.xxyz; vec3 b = a.yyz; vec3 b = a.xxyz(); vec3 b = a.yzy; vec3 b = a.z;


     yyz;
    yzy


}