James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | using namespace metal; |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 3 | |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 4 | struct tint_module_vars_struct { |
| 5 | texture1d<uint, access::read_write> arg_0; |
| 6 | }; |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 7 | |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 8 | void textureStore_4cce74(tint_module_vars_struct tint_module_vars) { |
| 9 | int arg_1 = 1; |
| 10 | uint4 arg_2 = uint4(1u); |
| 11 | uint4 const v = arg_2; |
| 12 | tint_module_vars.arg_0.write(v, uint(arg_1)); |
James Price | bc56248 | 2024-09-10 15:18:51 +0000 | [diff] [blame] | 13 | const_cast<texture1d<uint, access::read_write>thread &>(tint_module_vars.arg_0).fence(); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 14 | } |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 15 | |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 16 | fragment void fragment_main(texture1d<uint, access::read_write> arg_0 [[texture(0)]]) { |
| 17 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 18 | textureStore_4cce74(tint_module_vars); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 19 | } |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 20 | |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 21 | kernel void compute_main(texture1d<uint, 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_4cce74(tint_module_vars); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 24 | } |