Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 1 | #version 310 es |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 2 | |
Stephen White | 0b39270 | 2022-01-28 22:36:58 +0000 | [diff] [blame] | 3 | layout(location = 0) in int loc0_1; |
| 4 | layout(location = 1) in uint loc1_1; |
| 5 | layout(location = 2) in float loc2_1; |
| 6 | layout(location = 3) in vec4 loc3_1; |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 7 | struct VertexInputs0 { |
| 8 | uint vertex_index; |
| 9 | int loc0; |
| 10 | }; |
Stephen White | e2f35ba | 2022-01-26 16:48:55 +0000 | [diff] [blame] | 11 | |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 12 | struct VertexInputs1 { |
| 13 | float loc2; |
| 14 | vec4 loc3; |
| 15 | }; |
Stephen White | e2f35ba | 2022-01-26 16:48:55 +0000 | [diff] [blame] | 16 | |
Stephen White | 0b39270 | 2022-01-28 22:36:58 +0000 | [diff] [blame] | 17 | vec4 tint_symbol(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) { |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 18 | 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 Clayton | 25b7e98 | 2022-06-01 01:11:59 +0000 | [diff] [blame] | 23 | return vec4(0.0f); |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 24 | } |
| 25 | |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 26 | void main() { |
Stephen White | 790e4c2 | 2022-04-22 21:25:02 +0000 | [diff] [blame] | 27 | gl_PointSize = 1.0; |
Stephen White | 0b39270 | 2022-01-28 22:36:58 +0000 | [diff] [blame] | 28 | 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 White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 35 | } |