blob: 2470a13ed70db08ba74e477c871819e6ad857f95 [file] [log] [blame]
Stephen White2fe0f4b2021-11-16 15:15:36 +00001#version 310 es
Stephen White2fe0f4b2021-11-16 15:15:36 +00002
Stephen White0b392702022-01-28 22:36:58 +00003layout(location = 0) in int loc0_1;
4layout(location = 1) in uint loc1_1;
5layout(location = 2) in float loc2_1;
6layout(location = 3) in vec4 loc3_1;
Stephen White2fe0f4b2021-11-16 15:15:36 +00007struct VertexInputs0 {
8 uint vertex_index;
9 int loc0;
10};
Stephen Whitee2f35ba2022-01-26 16:48:55 +000011
Stephen White2fe0f4b2021-11-16 15:15:36 +000012struct VertexInputs1 {
13 float loc2;
14 vec4 loc3;
15};
Stephen Whitee2f35ba2022-01-26 16:48:55 +000016
Stephen White0b392702022-01-28 22:36:58 +000017vec4 tint_symbol(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) {
Stephen White2fe0f4b2021-11-16 15:15:36 +000018 uint foo = (inputs0.vertex_index + instance_index);
19 int i = inputs0.loc0;
20 uint u = loc1;
21 float f = inputs1.loc2;
22 vec4 v = inputs1.loc3;
Ben Clayton25b7e982022-06-01 01:11:59 +000023 return vec4(0.0f);
Stephen White2fe0f4b2021-11-16 15:15:36 +000024}
25
Stephen White2fe0f4b2021-11-16 15:15:36 +000026void main() {
Stephen White790e4c22022-04-22 21:25:02 +000027 gl_PointSize = 1.0;
Stephen White0b392702022-01-28 22:36:58 +000028 VertexInputs0 tint_symbol_1 = VertexInputs0(uint(gl_VertexID), loc0_1);
29 VertexInputs1 tint_symbol_2 = VertexInputs1(loc2_1, loc3_1);
30 vec4 inner_result = tint_symbol(tint_symbol_1, loc1_1, uint(gl_InstanceID), tint_symbol_2);
31 gl_Position = inner_result;
32 gl_Position.y = -(gl_Position.y);
33 gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
34 return;
Stephen White2fe0f4b2021-11-16 15:15:36 +000035}