dan sinclair | 8392a82 | 2022-11-25 04:25:18 +0000 | [diff] [blame] | 1 | #version 310 es |
| 2 | |
| 3 | void normalize_584e47() { |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 4 | vec2 res = vec2(0.70710676908493041992f); |
dan sinclair | 8392a82 | 2022-11-25 04:25:18 +0000 | [diff] [blame] | 5 | } |
| 6 | |
| 7 | vec4 vertex_main() { |
| 8 | normalize_584e47(); |
| 9 | return vec4(0.0f); |
| 10 | } |
| 11 | |
| 12 | void main() { |
| 13 | gl_PointSize = 1.0; |
| 14 | vec4 inner_result = vertex_main(); |
| 15 | gl_Position = inner_result; |
| 16 | gl_Position.y = -(gl_Position.y); |
| 17 | gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w); |
| 18 | return; |
| 19 | } |
| 20 | #version 310 es |
Ben Clayton | f1f56b2 | 2023-03-09 19:58:23 +0000 | [diff] [blame] | 21 | precision highp float; |
dan sinclair | 8392a82 | 2022-11-25 04:25:18 +0000 | [diff] [blame] | 22 | |
| 23 | void normalize_584e47() { |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 24 | vec2 res = vec2(0.70710676908493041992f); |
dan sinclair | 8392a82 | 2022-11-25 04:25:18 +0000 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | void fragment_main() { |
| 28 | normalize_584e47(); |
| 29 | } |
| 30 | |
| 31 | void main() { |
| 32 | fragment_main(); |
| 33 | return; |
| 34 | } |
| 35 | #version 310 es |
| 36 | |
| 37 | void normalize_584e47() { |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 38 | vec2 res = vec2(0.70710676908493041992f); |
dan sinclair | 8392a82 | 2022-11-25 04:25:18 +0000 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | void compute_main() { |
| 42 | normalize_584e47(); |
| 43 | } |
| 44 | |
| 45 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| 46 | void main() { |
| 47 | compute_main(); |
| 48 | return; |
| 49 | } |