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 | texture3d<int, 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_7792fa(tint_module_vars_struct tint_module_vars) { |
| 9 | tint_module_vars.arg_0.write(int4(1), uint3(1u)); |
James Price | bc56248 | 2024-09-10 15:18:51 +0000 | [diff] [blame] | 10 | const_cast<texture3d<int, access::read_write>thread &>(tint_module_vars.arg_0).fence(); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 11 | } |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 12 | |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 13 | fragment void fragment_main(texture3d<int, 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_7792fa(tint_module_vars); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 16 | } |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 17 | |
James Price | f4f5534 | 2024-06-12 03:02:19 +0000 | [diff] [blame] | 18 | kernel void compute_main(texture3d<int, access::read_write> arg_0 [[texture(0)]]) { |
| 19 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0}; |
| 20 | textureStore_7792fa(tint_module_vars); |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 21 | } |