dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 1 | #version 460 |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 2 | |
Stephen White | 11e786e | 2023-08-24 22:01:10 +0000 | [diff] [blame] | 3 | layout(binding = 0, std430) buffer prevent_dce_block_ssbo { |
| 4 | uvec2 inner; |
| 5 | } prevent_dce; |
| 6 | |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 7 | uniform highp samplerCubeArray arg_0_1; |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 8 | uvec2 textureDimensions_879b73() { |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 9 | uvec2 res = uvec2(textureSize(arg_0_1, 0).xy); |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 10 | return res; |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 11 | } |
| 12 | |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 13 | struct VertexOutput { |
| 14 | vec4 pos; |
| 15 | uvec2 prevent_dce; |
| 16 | }; |
| 17 | |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 18 | void fragment_main() { |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 19 | prevent_dce.inner = textureDimensions_879b73(); |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | void main() { |
| 23 | fragment_main(); |
| 24 | return; |
| 25 | } |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 26 | #version 460 |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 27 | |
Stephen White | 11e786e | 2023-08-24 22:01:10 +0000 | [diff] [blame] | 28 | layout(binding = 0, std430) buffer prevent_dce_block_ssbo { |
| 29 | uvec2 inner; |
| 30 | } prevent_dce; |
| 31 | |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 32 | uniform highp samplerCubeArray arg_0_1; |
| 33 | uvec2 textureDimensions_879b73() { |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 34 | uvec2 res = uvec2(textureSize(arg_0_1, 0).xy); |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 35 | return res; |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 36 | } |
| 37 | |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 38 | struct VertexOutput { |
| 39 | vec4 pos; |
| 40 | uvec2 prevent_dce; |
| 41 | }; |
| 42 | |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 43 | void compute_main() { |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 44 | prevent_dce.inner = textureDimensions_879b73(); |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| 48 | void main() { |
| 49 | compute_main(); |
| 50 | return; |
| 51 | } |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 52 | #version 460 |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 53 | |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 54 | layout(location = 0) flat out uvec2 prevent_dce_1; |
| 55 | uniform highp samplerCubeArray arg_0_1; |
| 56 | uvec2 textureDimensions_879b73() { |
| 57 | uvec2 res = uvec2(textureSize(arg_0_1, 0).xy); |
| 58 | return res; |
| 59 | } |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 60 | |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 61 | struct VertexOutput { |
| 62 | vec4 pos; |
| 63 | uvec2 prevent_dce; |
| 64 | }; |
Ben Clayton | 13f0890 | 2022-10-26 18:36:44 +0000 | [diff] [blame] | 65 | |
dan sinclair | e28f132 | 2024-09-18 23:47:12 +0000 | [diff] [blame] | 66 | VertexOutput vertex_main() { |
| 67 | VertexOutput tint_symbol = VertexOutput(vec4(0.0f, 0.0f, 0.0f, 0.0f), uvec2(0u, 0u)); |
| 68 | tint_symbol.pos = vec4(0.0f); |
| 69 | tint_symbol.prevent_dce = textureDimensions_879b73(); |
| 70 | return tint_symbol; |
| 71 | } |
| 72 | |
| 73 | void main() { |
| 74 | gl_PointSize = 1.0; |
| 75 | VertexOutput inner_result = vertex_main(); |
| 76 | gl_Position = inner_result.pos; |
| 77 | prevent_dce_1 = inner_result.prevent_dce; |
| 78 | gl_Position.y = -(gl_Position.y); |
| 79 | gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w); |
| 80 | return; |
| 81 | } |