James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame^] | 1 | #include <metal_stdlib> |
| 2 | using namespace metal; |
| 3 | struct tint_module_vars_struct { |
| 4 | texture2d_array<float, access::read_write> arg_0; |
| 5 | }; |
| 6 | struct vertex_main_outputs { |
| 7 | float4 tint_symbol [[position]]; |
| 8 | }; |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 9 | |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame^] | 10 | void textureStore_4c76b7(tint_module_vars_struct tint_module_vars) { |
| 11 | uint2 arg_1 = uint2(1u); |
| 12 | int arg_2 = 1; |
| 13 | float4 arg_3 = float4(1.0f); |
| 14 | tint_module_vars.arg_0.write(arg_3, arg_1, arg_2); |
| 15 | tint_module_vars.arg_0.fence(); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 16 | } |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame^] | 17 | float4 vertex_main_inner(tint_module_vars_struct tint_module_vars) { |
| 18 | textureStore_4c76b7(tint_module_vars); |
| 19 | return float4(0.0f); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 20 | } |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame^] | 21 | fragment void fragment_main(texture2d_array<float, access::read_write> arg_0 [[texture(0)]]) { |
| 22 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 23 | textureStore_4c76b7(tint_module_vars); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 24 | } |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame^] | 25 | kernel void compute_main(texture2d_array<float, access::read_write> arg_0 [[texture(0)]]) { |
| 26 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 27 | textureStore_4c76b7(tint_module_vars); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 28 | } |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame^] | 29 | vertex vertex_main_outputs vertex_main(texture2d_array<float, access::read_write> arg_0 [[texture(0)]]) { |
| 30 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 31 | return vertex_main_outputs{.tint_symbol=vertex_main_inner(tint_module_vars)}; |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 32 | } |