Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 1 | #version 310 es |
| 2 | |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 3 | struct modf_result_vec3_f32 { |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 4 | vec3 fract; |
| 5 | vec3 whole; |
| 6 | }; |
| 7 | |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 8 | modf_result_vec3_f32 tint_modf(vec3 param_0) { |
| 9 | modf_result_vec3_f32 result; |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 10 | result.fract = modf(param_0, result.whole); |
| 11 | return result; |
| 12 | } |
| 13 | |
| 14 | |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 15 | void modf_5ea256() { |
Ben Clayton | 329dfd7 | 2022-11-23 00:05:05 +0000 | [diff] [blame] | 16 | vec3 arg_0 = vec3(-1.5f); |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 17 | modf_result_vec3_f32 res = tint_modf(arg_0); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | vec4 vertex_main() { |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 21 | modf_5ea256(); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 22 | return vec4(0.0f); |
| 23 | } |
| 24 | |
| 25 | void main() { |
| 26 | gl_PointSize = 1.0; |
| 27 | vec4 inner_result = vertex_main(); |
| 28 | gl_Position = inner_result; |
| 29 | gl_Position.y = -(gl_Position.y); |
| 30 | gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w); |
| 31 | return; |
| 32 | } |
| 33 | #version 310 es |
Ben Clayton | f1f56b2 | 2023-03-09 19:58:23 +0000 | [diff] [blame] | 34 | precision highp float; |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 35 | |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 36 | struct modf_result_vec3_f32 { |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 37 | vec3 fract; |
| 38 | vec3 whole; |
| 39 | }; |
| 40 | |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 41 | modf_result_vec3_f32 tint_modf(vec3 param_0) { |
| 42 | modf_result_vec3_f32 result; |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 43 | result.fract = modf(param_0, result.whole); |
| 44 | return result; |
| 45 | } |
| 46 | |
| 47 | |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 48 | void modf_5ea256() { |
Ben Clayton | 329dfd7 | 2022-11-23 00:05:05 +0000 | [diff] [blame] | 49 | vec3 arg_0 = vec3(-1.5f); |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 50 | modf_result_vec3_f32 res = tint_modf(arg_0); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | void fragment_main() { |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 54 | modf_5ea256(); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | void main() { |
| 58 | fragment_main(); |
| 59 | return; |
| 60 | } |
| 61 | #version 310 es |
| 62 | |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 63 | struct modf_result_vec3_f32 { |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 64 | vec3 fract; |
| 65 | vec3 whole; |
| 66 | }; |
| 67 | |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 68 | modf_result_vec3_f32 tint_modf(vec3 param_0) { |
| 69 | modf_result_vec3_f32 result; |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 70 | result.fract = modf(param_0, result.whole); |
| 71 | return result; |
| 72 | } |
| 73 | |
| 74 | |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 75 | void modf_5ea256() { |
Ben Clayton | 329dfd7 | 2022-11-23 00:05:05 +0000 | [diff] [blame] | 76 | vec3 arg_0 = vec3(-1.5f); |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 77 | modf_result_vec3_f32 res = tint_modf(arg_0); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | void compute_main() { |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 81 | modf_5ea256(); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| 85 | void main() { |
| 86 | compute_main(); |
| 87 | return; |
| 88 | } |