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