blob: f6749c1467f1b785b5ce6447c11056a707094e03 [file] [log] [blame]
dan sinclair196326c2024-12-06 12:40:09 +00001//
2// fragment_main
3//
dan sinclair1e0c2012024-09-04 01:56:01 +00004#version 310 es
5precision highp float;
6precision highp int;
dan sinclair6e93ca52024-08-28 23:58:04 +00007
dan sinclairf15c1c32024-09-05 21:41:20 +00008layout(binding = 0, std430)
James Price2312bfa2024-12-13 09:53:34 -08009buffer f_prevent_dce_block_ssbo {
James Price71c1d542024-10-10 23:01:19 +000010 vec4 inner;
dan sinclairf15c1c32024-09-05 21:41:20 +000011} v;
dan sinclair1e0c2012024-09-04 01:56:01 +000012vec4 saturate_a5b571() {
13 vec4 arg_0 = vec4(2.0f);
14 vec4 res = clamp(arg_0, vec4(0.0f), vec4(1.0f));
15 return res;
16}
17void main() {
James Price71c1d542024-10-10 23:01:19 +000018 v.inner = saturate_a5b571();
dan sinclairf15c1c32024-09-05 21:41:20 +000019}
dan sinclair196326c2024-12-06 12:40:09 +000020//
21// compute_main
22//
dan sinclairf15c1c32024-09-05 21:41:20 +000023#version 310 es
24
25layout(binding = 0, std430)
James Price71c1d542024-10-10 23:01:19 +000026buffer prevent_dce_block_1_ssbo {
27 vec4 inner;
dan sinclairf15c1c32024-09-05 21:41:20 +000028} v;
29vec4 saturate_a5b571() {
30 vec4 arg_0 = vec4(2.0f);
31 vec4 res = clamp(arg_0, vec4(0.0f), vec4(1.0f));
32 return res;
dan sinclair1e0c2012024-09-04 01:56:01 +000033}
34layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
35void main() {
James Price71c1d542024-10-10 23:01:19 +000036 v.inner = saturate_a5b571();
dan sinclair1e0c2012024-09-04 01:56:01 +000037}
dan sinclair196326c2024-12-06 12:40:09 +000038//
39// vertex_main
40//
dan sinclair1e0c2012024-09-04 01:56:01 +000041#version 310 es
dan sinclair1e0c2012024-09-04 01:56:01 +000042
dan sinclaira561b982024-09-05 21:56:28 +000043
dan sinclair1e0c2012024-09-04 01:56:01 +000044struct VertexOutput {
45 vec4 pos;
46 vec4 prevent_dce;
47};
48
dan sinclairf15c1c32024-09-05 21:41:20 +000049layout(location = 0) flat out vec4 vertex_main_loc0_Output;
dan sinclair1e0c2012024-09-04 01:56:01 +000050vec4 saturate_a5b571() {
51 vec4 arg_0 = vec4(2.0f);
52 vec4 res = clamp(arg_0, vec4(0.0f), vec4(1.0f));
53 return res;
54}
dan sinclairf15c1c32024-09-05 21:41:20 +000055VertexOutput vertex_main_inner() {
dan sinclair1e0c2012024-09-04 01:56:01 +000056 VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
57 tint_symbol.pos = vec4(0.0f);
58 tint_symbol.prevent_dce = saturate_a5b571();
59 return tint_symbol;
60}
dan sinclair1e0c2012024-09-04 01:56:01 +000061void main() {
dan sinclairf15c1c32024-09-05 21:41:20 +000062 VertexOutput v = vertex_main_inner();
63 gl_Position = v.pos;
James Price25379d32024-11-28 21:23:47 +000064 gl_Position.y = -(gl_Position.y);
65 gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
dan sinclairf15c1c32024-09-05 21:41:20 +000066 vertex_main_loc0_Output = v.prevent_dce;
67 gl_PointSize = 1.0f;
dan sinclair1e0c2012024-09-04 01:56:01 +000068}