blob: fbec0e3dc884045e067cd2ad08ab86df1ec83a4b [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 vec2 inner;
dan sinclairf15c1c32024-09-05 21:41:20 +000011} v;
12vec2 fract_943cb1() {
13 vec2 res = vec2(0.25f);
14 return res;
15}
16void main() {
James Price71c1d542024-10-10 23:01:19 +000017 v.inner = fract_943cb1();
dan sinclairf15c1c32024-09-05 21:41:20 +000018}
dan sinclair196326c2024-12-06 12:40:09 +000019//
20// compute_main
21//
dan sinclairf15c1c32024-09-05 21:41:20 +000022#version 310 es
23
24layout(binding = 0, std430)
James Price71c1d542024-10-10 23:01:19 +000025buffer prevent_dce_block_1_ssbo {
26 vec2 inner;
dan sinclairf15c1c32024-09-05 21:41:20 +000027} v;
28vec2 fract_943cb1() {
29 vec2 res = vec2(0.25f);
30 return res;
31}
32layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
33void main() {
James Price71c1d542024-10-10 23:01:19 +000034 v.inner = fract_943cb1();
dan sinclairf15c1c32024-09-05 21:41:20 +000035}
dan sinclair196326c2024-12-06 12:40:09 +000036//
37// vertex_main
38//
dan sinclairf15c1c32024-09-05 21:41:20 +000039#version 310 es
40
dan sinclaira561b982024-09-05 21:56:28 +000041
dan sinclair1e0c2012024-09-04 01:56:01 +000042struct VertexOutput {
43 vec4 pos;
44 vec2 prevent_dce;
45};
46
James Priceced63662024-12-13 10:48:26 -080047layout(location = 0) flat out vec2 tint_interstage_location0;
dan sinclair1e0c2012024-09-04 01:56:01 +000048vec2 fract_943cb1() {
49 vec2 res = vec2(0.25f);
50 return res;
51}
dan sinclairf15c1c32024-09-05 21:41:20 +000052VertexOutput vertex_main_inner() {
dan sinclair1e0c2012024-09-04 01:56:01 +000053 VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec2(0.0f));
54 tint_symbol.pos = vec4(0.0f);
55 tint_symbol.prevent_dce = fract_943cb1();
56 return tint_symbol;
57}
dan sinclair1e0c2012024-09-04 01:56:01 +000058void main() {
dan sinclairf15c1c32024-09-05 21:41:20 +000059 VertexOutput v = vertex_main_inner();
60 gl_Position = v.pos;
James Price25379d32024-11-28 21:23:47 +000061 gl_Position.y = -(gl_Position.y);
62 gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
James Priceced63662024-12-13 10:48:26 -080063 tint_interstage_location0 = v.prevent_dce;
dan sinclairf15c1c32024-09-05 21:41:20 +000064 gl_PointSize = 1.0f;
dan sinclair1e0c2012024-09-04 01:56:01 +000065}