Antonio Maiorano | 08d9279 | 2024-01-11 20:51:50 +0000 | [diff] [blame] | 1 | #version 310 es |
| 2 | |
| 3 | struct modf_result_f32 { |
| 4 | float fract; |
| 5 | float whole; |
| 6 | }; |
| 7 | |
| 8 | struct frexp_result_f32 { |
| 9 | float fract; |
| 10 | int exp; |
| 11 | }; |
| 12 | |
| 13 | |
| 14 | void deref_modf() { |
| 15 | modf_result_f32 a = modf_result_f32(0.5f, 1.0f); |
| 16 | float tint_symbol = a.fract; |
| 17 | float whole = a.whole; |
| 18 | } |
| 19 | |
| 20 | void no_deref_modf() { |
| 21 | modf_result_f32 a = modf_result_f32(0.5f, 1.0f); |
| 22 | float tint_symbol = a.fract; |
| 23 | float whole = a.whole; |
| 24 | } |
| 25 | |
| 26 | void deref_frexp() { |
| 27 | frexp_result_f32 a = frexp_result_f32(0.75f, 1); |
| 28 | float tint_symbol = a.fract; |
| 29 | int tint_symbol_1 = a.exp; |
| 30 | } |
| 31 | |
| 32 | void no_deref_frexp() { |
| 33 | frexp_result_f32 a = frexp_result_f32(0.75f, 1); |
| 34 | float tint_symbol = a.fract; |
| 35 | int tint_symbol_1 = a.exp; |
| 36 | } |
| 37 | |
| 38 | void tint_symbol_2() { |
| 39 | deref_modf(); |
| 40 | no_deref_modf(); |
| 41 | deref_frexp(); |
| 42 | no_deref_frexp(); |
| 43 | } |
| 44 | |
| 45 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| 46 | void main() { |
| 47 | tint_symbol_2(); |
| 48 | return; |
| 49 | } |