glslang/Test/baseResults/preprocessor.simple.vert.out
chirsz-ever 3877be8117 Improve preprocessor ouput format
Modify preprocessor.simple.vert to test spaces before parenthesis.
2023-12-11 20:03:18 +00:00

72 lines
831 B
Plaintext

#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
}