| #version 310 es |
| |
| |
| struct VertexOutput { |
| vec4 pos; |
| int loc0; |
| }; |
| |
| layout(location = 0) flat out int vert_main1_loc0_Output; |
| VertexOutput foo(float x) { |
| return VertexOutput(vec4(x, x, x, 1.0f), 42); |
| } |
| VertexOutput vert_main1_inner() { |
| return foo(0.5f); |
| } |
| void main() { |
| VertexOutput v = vert_main1_inner(); |
| gl_Position = v.pos; |
| gl_Position[1u] = -(gl_Position.y); |
| gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w); |
| vert_main1_loc0_Output = v.loc0; |
| gl_PointSize = 1.0f; |
| } |
| #version 310 es |
| |
| |
| struct VertexOutput { |
| vec4 pos; |
| int loc0; |
| }; |
| |
| layout(location = 0) flat out int vert_main2_loc0_Output; |
| VertexOutput foo(float x) { |
| return VertexOutput(vec4(x, x, x, 1.0f), 42); |
| } |
| VertexOutput vert_main2_inner() { |
| return foo(0.25f); |
| } |
| void main() { |
| VertexOutput v = vert_main2_inner(); |
| gl_Position = v.pos; |
| gl_Position[1u] = -(gl_Position.y); |
| gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w); |
| vert_main2_loc0_Output = v.loc0; |
| gl_PointSize = 1.0f; |
| } |