Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | |
| 4 | struct VertexOutputs { |
| 5 | int loc0; |
| 6 | uint loc1; |
| 7 | float loc2; |
| 8 | vec4 loc3; |
| 9 | vec4 position; |
| 10 | }; |
| 11 | struct tint_symbol_1 { |
| 12 | int loc0; |
| 13 | uint loc1; |
| 14 | float loc2; |
| 15 | vec4 loc3; |
| 16 | vec4 position; |
| 17 | }; |
| 18 | |
| 19 | VertexOutputs tint_symbol_inner() { |
| 20 | VertexOutputs tint_symbol_2 = VertexOutputs(1, 1u, 1.0f, vec4(1.0f, 2.0f, 3.0f, 4.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f)); |
| 21 | return tint_symbol_2; |
| 22 | } |
| 23 | |
| 24 | tint_symbol_1 tint_symbol() { |
| 25 | VertexOutputs inner_result = tint_symbol_inner(); |
| 26 | tint_symbol_1 wrapper_result = tint_symbol_1(0, 0u, 0.0f, vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f)); |
| 27 | wrapper_result.loc0 = inner_result.loc0; |
| 28 | wrapper_result.loc1 = inner_result.loc1; |
| 29 | wrapper_result.loc2 = inner_result.loc2; |
| 30 | wrapper_result.loc3 = inner_result.loc3; |
| 31 | wrapper_result.position = inner_result.position; |
| 32 | return wrapper_result; |
| 33 | } |
Stephen White | ca4cfb9 | 2022-01-25 21:39:05 +0000 | [diff] [blame] | 34 | layout(location = 0) flat out int loc0; |
| 35 | layout(location = 1) flat out uint loc1; |
Stephen White | 8e01c45 | 2022-01-25 19:44:14 +0000 | [diff] [blame] | 36 | layout(location = 2) out float loc2; |
| 37 | layout(location = 3) out vec4 loc3; |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 38 | void main() { |
| 39 | tint_symbol_1 outputs; |
| 40 | outputs = tint_symbol(); |
| 41 | loc0 = outputs.loc0; |
| 42 | loc1 = outputs.loc1; |
| 43 | loc2 = outputs.loc2; |
| 44 | loc3 = outputs.loc3; |
| 45 | gl_Position = outputs.position; |
| 46 | gl_Position.y = -gl_Position.y; |
| 47 | } |
| 48 | |
| 49 | |