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 | texture3d<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_4288fc(tint_module_vars_struct tint_module_vars) { |
| 8 | tint_module_vars.arg_0.write(float4(1.0f), uint3(1u)); |
| 9 | } |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 10 | fragment void fragment_main(texture3d<float, access::write> arg_0 [[texture(0)]]) { |
| 11 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 12 | textureStore_4288fc(tint_module_vars); |
| 13 | } |
| 14 | kernel void compute_main(texture3d<float, access::write> arg_0 [[texture(0)]]) { |
| 15 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 16 | textureStore_4288fc(tint_module_vars); |
| 17 | } |