blob: 25b3e2fd8e8b2f467d271043d777c0ab7442e374 [file] [log] [blame]
SKIP: FAILED
#version 310 es
vec4 vtx_main_inner(uint VertexIndex) {
return vec4(vec2[3](vec2(0.0f, 0.5f), vec2(-0.5f), vec2(0.5f, -0.5f))[VertexIndex], 0.0f, 1.0f);
}
void main() {
gl_Position = vtx_main_inner(gl_VertexID);
gl_Position[1u] = -(gl_Position.y);
gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
gl_PointSize = 1.0f;
}
error: Error parsing GLSL shader:
ERROR: 0:7: 'vtx_main_inner' : no matching overloaded function found
ERROR: 0:7: 'assign' : cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
ERROR: 0:7: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
#version 310 es
precision highp float;
precision highp int;
layout(location = 0) out vec4 frag_main_loc0_Output;
vec4 frag_main_inner() {
return vec4(1.0f, 0.0f, 0.0f, 1.0f);
}
void main() {
frag_main_loc0_Output = frag_main_inner();
}
tint executable returned error: exit status 1