blob: 8b6d6b7077b50a60d32e60877009f8d155875863 [file] [log] [blame]
Ben Claytonc0af5c52022-06-02 14:36:10 +00001#version 310 es
2
Ben Claytoned998e92022-11-23 19:57:00 +00003struct modf_result_vec3_f32 {
Ben Claytonc0af5c52022-06-02 14:36:10 +00004 vec3 fract;
5 vec3 whole;
6};
7
Ben Claytoned998e92022-11-23 19:57:00 +00008modf_result_vec3_f32 tint_modf(vec3 param_0) {
9 modf_result_vec3_f32 result;
Ben Claytonc0af5c52022-06-02 14:36:10 +000010 result.fract = modf(param_0, result.whole);
11 return result;
12}
13
14
Zhaoming Jiang20cddbf2022-08-05 15:11:44 +000015void modf_5ea256() {
Ben Clayton329dfd72022-11-23 00:05:05 +000016 vec3 arg_0 = vec3(-1.5f);
Ben Claytoned998e92022-11-23 19:57:00 +000017 modf_result_vec3_f32 res = tint_modf(arg_0);
Ben Claytonc0af5c52022-06-02 14:36:10 +000018}
19
20vec4 vertex_main() {
Zhaoming Jiang20cddbf2022-08-05 15:11:44 +000021 modf_5ea256();
Ben Claytonc0af5c52022-06-02 14:36:10 +000022 return vec4(0.0f);
23}
24
25void 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 Claytonf1f56b22023-03-09 19:58:23 +000034precision highp float;
Ben Claytonc0af5c52022-06-02 14:36:10 +000035
Ben Claytoned998e92022-11-23 19:57:00 +000036struct modf_result_vec3_f32 {
Ben Claytonc0af5c52022-06-02 14:36:10 +000037 vec3 fract;
38 vec3 whole;
39};
40
Ben Claytoned998e92022-11-23 19:57:00 +000041modf_result_vec3_f32 tint_modf(vec3 param_0) {
42 modf_result_vec3_f32 result;
Ben Claytonc0af5c52022-06-02 14:36:10 +000043 result.fract = modf(param_0, result.whole);
44 return result;
45}
46
47
Zhaoming Jiang20cddbf2022-08-05 15:11:44 +000048void modf_5ea256() {
Ben Clayton329dfd72022-11-23 00:05:05 +000049 vec3 arg_0 = vec3(-1.5f);
Ben Claytoned998e92022-11-23 19:57:00 +000050 modf_result_vec3_f32 res = tint_modf(arg_0);
Ben Claytonc0af5c52022-06-02 14:36:10 +000051}
52
53void fragment_main() {
Zhaoming Jiang20cddbf2022-08-05 15:11:44 +000054 modf_5ea256();
Ben Claytonc0af5c52022-06-02 14:36:10 +000055}
56
57void main() {
58 fragment_main();
59 return;
60}
61#version 310 es
62
Ben Claytoned998e92022-11-23 19:57:00 +000063struct modf_result_vec3_f32 {
Ben Claytonc0af5c52022-06-02 14:36:10 +000064 vec3 fract;
65 vec3 whole;
66};
67
Ben Claytoned998e92022-11-23 19:57:00 +000068modf_result_vec3_f32 tint_modf(vec3 param_0) {
69 modf_result_vec3_f32 result;
Ben Claytonc0af5c52022-06-02 14:36:10 +000070 result.fract = modf(param_0, result.whole);
71 return result;
72}
73
74
Zhaoming Jiang20cddbf2022-08-05 15:11:44 +000075void modf_5ea256() {
Ben Clayton329dfd72022-11-23 00:05:05 +000076 vec3 arg_0 = vec3(-1.5f);
Ben Claytoned998e92022-11-23 19:57:00 +000077 modf_result_vec3_f32 res = tint_modf(arg_0);
Ben Claytonc0af5c52022-06-02 14:36:10 +000078}
79
80void compute_main() {
Zhaoming Jiang20cddbf2022-08-05 15:11:44 +000081 modf_5ea256();
Ben Claytonc0af5c52022-06-02 14:36:10 +000082}
83
84layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
85void main() {
86 compute_main();
87 return;
88}