blob: e8521521005f402ca098bddc7cd2fb0b9d7bd533 [file] [log] [blame]
Antonio Maiorano08d92792024-01-11 20:51:50 +00001#version 310 es
2
3struct modf_result_f32 {
4 float fract;
5 float whole;
6};
7
8struct frexp_result_f32 {
9 float fract;
10 int exp;
11};
12
13
14void 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
20void 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
26void 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
32void 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
38void tint_symbol_2() {
39 deref_modf();
40 no_deref_modf();
41 deref_frexp();
42 no_deref_frexp();
43}
44
45layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
46void main() {
47 tint_symbol_2();
48 return;
49}