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::write> arg_0; |
| 5 | }; |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 6 | |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 7 | void textureStore_d55e65(tint_module_vars_struct tint_module_vars) { |
| 8 | uint2 arg_1 = uint2(1u); |
| 9 | int arg_2 = 1; |
| 10 | float4 arg_3 = float4(1.0f); |
| 11 | tint_module_vars.arg_0.write(arg_3, arg_1, arg_2); |
| 12 | } |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 13 | fragment void fragment_main(texture2d_array<float, access::write> arg_0 [[texture(0)]]) { |
| 14 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 15 | textureStore_d55e65(tint_module_vars); |
| 16 | } |
| 17 | kernel void compute_main(texture2d_array<float, access::write> arg_0 [[texture(0)]]) { |
| 18 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 19 | textureStore_d55e65(tint_module_vars); |
| 20 | } |