dan sinclair | 196326c | 2024-12-06 12:40:09 +0000 | [diff] [blame] | 1 | // |
| 2 | // fragment_main |
| 3 | // |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 4 | #version 310 es |
| 5 | precision highp float; |
| 6 | precision highp int; |
dan sinclair | 6e93ca5 | 2024-08-28 23:58:04 +0000 | [diff] [blame] | 7 | |
dan sinclair | 6e93ca5 | 2024-08-28 23:58:04 +0000 | [diff] [blame] | 8 | |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 9 | struct TintTextureUniformData { |
| 10 | uint tint_builtin_value_0; |
| 11 | }; |
| 12 | |
| 13 | layout(binding = 0, std430) |
James Price | 2312bfa | 2024-12-13 09:53:34 -0800 | [diff] [blame^] | 14 | buffer f_prevent_dce_block_ssbo { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 15 | uint inner; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 16 | } v; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 17 | layout(binding = 0, std140) |
James Price | 2312bfa | 2024-12-13 09:53:34 -0800 | [diff] [blame^] | 18 | uniform f_tint_symbol_ubo { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 19 | TintTextureUniformData inner; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 20 | } v_1; |
| 21 | uint textureNumLevels_c386c8() { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 22 | uint res = v_1.inner.tint_builtin_value_0; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 23 | return res; |
| 24 | } |
| 25 | void main() { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 26 | v.inner = textureNumLevels_c386c8(); |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 27 | } |
dan sinclair | 196326c | 2024-12-06 12:40:09 +0000 | [diff] [blame] | 28 | // |
| 29 | // compute_main |
| 30 | // |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 31 | #version 310 es |
| 32 | |
| 33 | |
| 34 | struct TintTextureUniformData { |
| 35 | uint tint_builtin_value_0; |
| 36 | }; |
| 37 | |
| 38 | layout(binding = 0, std430) |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 39 | buffer prevent_dce_block_1_ssbo { |
| 40 | uint inner; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 41 | } v; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 42 | layout(binding = 0, std140) |
dan sinclair | 196326c | 2024-12-06 12:40:09 +0000 | [diff] [blame] | 43 | uniform tint_symbol_1_ubo { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 44 | TintTextureUniformData inner; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 45 | } v_1; |
| 46 | uint textureNumLevels_c386c8() { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 47 | uint res = v_1.inner.tint_builtin_value_0; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 48 | return res; |
| 49 | } |
| 50 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| 51 | void main() { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 52 | v.inner = textureNumLevels_c386c8(); |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 53 | } |
dan sinclair | 196326c | 2024-12-06 12:40:09 +0000 | [diff] [blame] | 54 | // |
| 55 | // vertex_main |
| 56 | // |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 57 | #version 310 es |
| 58 | |
| 59 | |
| 60 | struct TintTextureUniformData { |
| 61 | uint tint_builtin_value_0; |
| 62 | }; |
| 63 | |
| 64 | struct VertexOutput { |
| 65 | vec4 pos; |
| 66 | uint prevent_dce; |
| 67 | }; |
| 68 | |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 69 | layout(binding = 0, std140) |
James Price | 2312bfa | 2024-12-13 09:53:34 -0800 | [diff] [blame^] | 70 | uniform v_tint_symbol_1_ubo { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 71 | TintTextureUniformData inner; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 72 | } v; |
| 73 | layout(location = 0) flat out uint vertex_main_loc0_Output; |
| 74 | uint textureNumLevels_c386c8() { |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 75 | uint res = v.inner.tint_builtin_value_0; |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 76 | return res; |
| 77 | } |
| 78 | VertexOutput vertex_main_inner() { |
| 79 | VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u); |
| 80 | tint_symbol.pos = vec4(0.0f); |
| 81 | tint_symbol.prevent_dce = textureNumLevels_c386c8(); |
| 82 | return tint_symbol; |
| 83 | } |
| 84 | void main() { |
| 85 | VertexOutput v_1 = vertex_main_inner(); |
| 86 | gl_Position = v_1.pos; |
James Price | 25379d3 | 2024-11-28 21:23:47 +0000 | [diff] [blame] | 87 | gl_Position.y = -(gl_Position.y); |
| 88 | gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w); |
dan sinclair | cdcb1c1 | 2024-10-01 20:46:21 +0000 | [diff] [blame] | 89 | vertex_main_loc0_Output = v_1.prevent_dce; |
| 90 | gl_PointSize = 1.0f; |
| 91 | } |