dan sinclair | a7acef8 | 2024-09-24 19:44:04 +0000 | [diff] [blame] | 1 | #version 310 es |
| 2 | precision highp float; |
| 3 | precision highp int; |
dan sinclair | 6e93ca5 | 2024-08-28 23:58:04 +0000 | [diff] [blame] | 4 | |
dan sinclair | a7acef8 | 2024-09-24 19:44:04 +0000 | [diff] [blame] | 5 | layout(binding = 0, std430) |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 6 | buffer prevent_dce_block_1_ssbo { |
| 7 | vec4 inner; |
dan sinclair | a7acef8 | 2024-09-24 19:44:04 +0000 | [diff] [blame] | 8 | } v; |
| 9 | layout(binding = 0, rgba8) uniform highp readonly image2D arg_0; |
| 10 | vec4 textureLoad_26c4f8() { |
| 11 | vec4 res = imageLoad(arg_0, ivec2(ivec2(1))).zyxw; |
| 12 | return res; |
| 13 | } |
| 14 | void main() { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 15 | v.inner = textureLoad_26c4f8(); |
dan sinclair | a7acef8 | 2024-09-24 19:44:04 +0000 | [diff] [blame] | 16 | } |
| 17 | #version 310 es |
dan sinclair | 6e93ca5 | 2024-08-28 23:58:04 +0000 | [diff] [blame] | 18 | |
dan sinclair | a7acef8 | 2024-09-24 19:44:04 +0000 | [diff] [blame] | 19 | layout(binding = 0, std430) |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 20 | buffer prevent_dce_block_1_ssbo { |
| 21 | vec4 inner; |
dan sinclair | a7acef8 | 2024-09-24 19:44:04 +0000 | [diff] [blame] | 22 | } v; |
| 23 | layout(binding = 0, rgba8) uniform highp readonly image2D arg_0; |
| 24 | vec4 textureLoad_26c4f8() { |
| 25 | vec4 res = imageLoad(arg_0, ivec2(ivec2(1))).zyxw; |
| 26 | return res; |
| 27 | } |
| 28 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| 29 | void main() { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 30 | v.inner = textureLoad_26c4f8(); |
dan sinclair | a7acef8 | 2024-09-24 19:44:04 +0000 | [diff] [blame] | 31 | } |
| 32 | #version 310 es |
| 33 | |
| 34 | |
| 35 | struct VertexOutput { |
| 36 | vec4 pos; |
| 37 | vec4 prevent_dce; |
| 38 | }; |
| 39 | |
| 40 | layout(binding = 0, rgba8) uniform highp readonly image2D arg_0; |
| 41 | layout(location = 0) flat out vec4 vertex_main_loc0_Output; |
| 42 | vec4 textureLoad_26c4f8() { |
| 43 | vec4 res = imageLoad(arg_0, ivec2(ivec2(1))).zyxw; |
| 44 | return res; |
| 45 | } |
| 46 | VertexOutput vertex_main_inner() { |
| 47 | VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f)); |
| 48 | tint_symbol.pos = vec4(0.0f); |
| 49 | tint_symbol.prevent_dce = textureLoad_26c4f8(); |
| 50 | return tint_symbol; |
| 51 | } |
| 52 | void main() { |
| 53 | VertexOutput v = vertex_main_inner(); |
| 54 | gl_Position = v.pos; |
| 55 | gl_Position[1u] = -(gl_Position.y); |
| 56 | gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w); |
| 57 | vertex_main_loc0_Output = v.prevent_dce; |
| 58 | gl_PointSize = 1.0f; |
| 59 | } |