• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 310 es
2
3precision highp float;
4
5layout(binding = 0) uniform block {
6    mediump float f;
7} instanceName;
8
9struct S {
10    int i;
11} s;
12
13float a[5];
14
15void main()
16{
17    bool b;
18    float f;
19    int i;
20    uint u;
21    bvec3 b3;
22    vec3 v3;
23    ivec3 iv3;
24    uvec3 uv3;
25    vec4 v4;
26    ivec4 iv4;
27    uvec4 uv4;
28    mat2 m2;
29    mat4 m4;
30
31    f * v4;
32    u + u;
33    uv4 / u;
34    iv3 -= iv3;
35
36    i %= 3;
37    uv3 % 4u;
38    --m2;
39    iv4++;
40
41    m4 != m4;
42    m2 == m2;
43    i <= i;
44    a == a;
45    s != s;
46
47    b && b;
48    b || b;
49    b ^^ b;
50
51    !b, uv3;
52
53    ~i;
54    ~u;
55    ~uv3;
56    ~iv3;
57
58    uv3 <<= i;
59    i >> i;
60    u << u;
61    iv3 >> iv3;
62
63    i & i;
64    u | u;
65    iv3 ^ iv3;
66    u & uv3;
67    uv3 | u;
68    uv3 &= u;
69    int arr[0x222 & 0xf];
70    arr[1]; // size 2
71    int arr2[(uvec2(0, 0x2) | 0x1u).y];
72    arr2[2]; // size 3
73}
74