Debian Codegraph @

tests/auto/qshaderbaker/data/color_glsl_only.vert

raw
1 #version 440
2
3 layout(location = 0) in vec4 position;
4 layout(location = 1) in vec3 color;
5 layout(location = 0) out vec3 v_color;
6
7 layout(std140, binding = 0) uniform buf {
8 mat4 mvp;
9 float opacity;
10 } ubuf;
11
12 out gl_PerVertex { vec4 gl_Position; };
13
14 void main()
15 {
16 #if QSHADER_SPIRV || QSHADER_HLSL || QSHADER_MSL
17 wrong
18 #endif
19
20 #if QSHADER_GLSL && !QSHADER_GLSL_ES && (QSHADER_GLSL_VERSION == 330 || QSHADER_GLSL_VERSION == 440)
21 v_color = color;
22 gl_Position = ubuf.mvp * position;
23 #else
24 something is broken
25 #endif
26 }