dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 1 | #version 310 es |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 2 | precision highp float; |
| 3 | precision highp int; |
| 4 | |
| 5 | |
dan sinclair | a561b98 | 2024-09-05 21:56:28 +0000 | [diff] [blame] | 6 | struct frexp_result_f32 { |
| 7 | float fract; |
| 8 | int exp; |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 9 | }; |
| 10 | |
| 11 | void frexp_bee870() { |
| 12 | frexp_result_f32 res = frexp_result_f32(0.5f, 1); |
| 13 | } |
| 14 | void main() { |
| 15 | frexp_bee870(); |
| 16 | } |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 17 | #version 310 es |
| 18 | |
dan sinclair | a561b98 | 2024-09-05 21:56:28 +0000 | [diff] [blame] | 19 | |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 20 | struct frexp_result_f32 { |
| 21 | float fract; |
| 22 | int exp; |
| 23 | }; |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 24 | |
dan sinclair | a561b98 | 2024-09-05 21:56:28 +0000 | [diff] [blame] | 25 | void frexp_bee870() { |
| 26 | frexp_result_f32 res = frexp_result_f32(0.5f, 1); |
| 27 | } |
| 28 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| 29 | void main() { |
| 30 | frexp_bee870(); |
| 31 | } |
| 32 | #version 310 es |
| 33 | |
| 34 | |
| 35 | struct frexp_result_f32 { |
| 36 | float fract; |
| 37 | int exp; |
| 38 | }; |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 39 | |
| 40 | struct VertexOutput { |
| 41 | vec4 pos; |
| 42 | }; |
| 43 | |
| 44 | void frexp_bee870() { |
| 45 | frexp_result_f32 res = frexp_result_f32(0.5f, 1); |
| 46 | } |
dan sinclair | a561b98 | 2024-09-05 21:56:28 +0000 | [diff] [blame] | 47 | VertexOutput vertex_main_inner() { |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 48 | VertexOutput tint_symbol = VertexOutput(vec4(0.0f)); |
| 49 | tint_symbol.pos = vec4(0.0f); |
| 50 | frexp_bee870(); |
| 51 | return tint_symbol; |
| 52 | } |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 53 | void main() { |
dan sinclair | a561b98 | 2024-09-05 21:56:28 +0000 | [diff] [blame] | 54 | gl_Position = vertex_main_inner().pos; |
| 55 | gl_Position[1u] = -(gl_Position.y); |
| 56 | gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w); |
| 57 | gl_PointSize = 1.0f; |
dan sinclair | 1e0c201 | 2024-09-04 01:56:01 +0000 | [diff] [blame] | 58 | } |