James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 2 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 3 | using namespace metal; |
Natalie Chouinard | 58fc3f1 | 2024-06-13 18:39:15 +0000 | [diff] [blame] | 4 | void textureStore_a14041(texture1d<int, access::read_write> tint_symbol) { |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 5 | int arg_1 = 1; |
| 6 | int4 arg_2 = int4(1); |
Natalie Chouinard | 58fc3f1 | 2024-06-13 18:39:15 +0000 | [diff] [blame] | 7 | tint_symbol.write(arg_2, uint(arg_1)); tint_symbol.fence(); |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 8 | } |
| 9 | |
Natalie Chouinard | 58fc3f1 | 2024-06-13 18:39:15 +0000 | [diff] [blame] | 10 | fragment void fragment_main(texture1d<int, access::read_write> tint_symbol_1 [[texture(0)]]) { |
| 11 | textureStore_a14041(tint_symbol_1); |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 12 | return; |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 13 | } |
| 14 | |
Natalie Chouinard | 58fc3f1 | 2024-06-13 18:39:15 +0000 | [diff] [blame] | 15 | kernel void compute_main(texture1d<int, access::read_write> tint_symbol_2 [[texture(0)]]) { |
| 16 | textureStore_a14041(tint_symbol_2); |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 17 | return; |
| 18 | } |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 19 | |