blob: 884448f02b727f0e576eac3e9ab3230f4cc7ddca [file] [log] [blame]
Ben Claytonc0af5c52022-06-02 14:36:10 +00001#version 310 es
Ben Claytonf1f56b22023-03-09 19:58:23 +00002precision highp float;
Stephen Whiteca9f3862024-02-07 18:08:23 +00003precision highp int;
Ben Claytonc0af5c52022-06-02 14:36:10 +00004
Natalie Chouinard6ee63302024-06-25 20:45:30 +00005layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
6 ivec2 inner;
7} prevent_dce;
8
Natalie Chouinarde9027182024-06-13 18:50:19 +00009ivec2 min_03c7e3() {
10 ivec2 arg_0 = ivec2(1);
11 ivec2 arg_1 = ivec2(1);
12 ivec2 res = min(arg_0, arg_1);
13 return res;
14}
15
Natalie Chouinarde9027182024-06-13 18:50:19 +000016struct VertexOutput {
17 vec4 pos;
18 ivec2 prevent_dce;
19};
Ben Claytonc0af5c52022-06-02 14:36:10 +000020
21void fragment_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000022 prevent_dce.inner = min_03c7e3();
Ben Claytonc0af5c52022-06-02 14:36:10 +000023}
24
25void main() {
26 fragment_main();
27 return;
28}
29#version 310 es
30
Natalie Chouinard6ee63302024-06-25 20:45:30 +000031layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
32 ivec2 inner;
33} prevent_dce;
34
Natalie Chouinarde9027182024-06-13 18:50:19 +000035ivec2 min_03c7e3() {
36 ivec2 arg_0 = ivec2(1);
37 ivec2 arg_1 = ivec2(1);
38 ivec2 res = min(arg_0, arg_1);
39 return res;
40}
41
Natalie Chouinarde9027182024-06-13 18:50:19 +000042struct VertexOutput {
43 vec4 pos;
44 ivec2 prevent_dce;
45};
Ben Claytonc0af5c52022-06-02 14:36:10 +000046
47void compute_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000048 prevent_dce.inner = min_03c7e3();
Ben Claytonc0af5c52022-06-02 14:36:10 +000049}
50
51layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
52void main() {
53 compute_main();
54 return;
55}
Natalie Chouinarde9027182024-06-13 18:50:19 +000056#version 310 es
57
58layout(location = 0) flat out ivec2 prevent_dce_1;
59ivec2 min_03c7e3() {
60 ivec2 arg_0 = ivec2(1);
61 ivec2 arg_1 = ivec2(1);
62 ivec2 res = min(arg_0, arg_1);
63 return res;
64}
65
66struct VertexOutput {
67 vec4 pos;
68 ivec2 prevent_dce;
69};
70
71VertexOutput vertex_main() {
72 VertexOutput tint_symbol = VertexOutput(vec4(0.0f, 0.0f, 0.0f, 0.0f), ivec2(0, 0));
73 tint_symbol.pos = vec4(0.0f);
74 tint_symbol.prevent_dce = min_03c7e3();
75 return tint_symbol;
76}
77
78void main() {
79 gl_PointSize = 1.0;
80 VertexOutput inner_result = vertex_main();
81 gl_Position = inner_result.pos;
82 prevent_dce_1 = inner_result.prevent_dce;
83 gl_Position.y = -(gl_Position.y);
84 gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
85 return;
86}