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; |
| 4 | void textureStore_877c92(texture1d<float, access::read_write> tint_symbol_1) { |
| 5 | int arg_1 = 1; |
| 6 | float4 arg_2 = float4(1.0f); |
| 7 | tint_symbol_1.write(arg_2, uint(arg_1)); tint_symbol_1.fence(); |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 8 | } |
| 9 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 10 | struct tint_symbol { |
| 11 | float4 value [[position]]; |
| 12 | }; |
| 13 | |
| 14 | float4 vertex_main_inner(texture1d<float, access::read_write> tint_symbol_2) { |
| 15 | textureStore_877c92(tint_symbol_2); |
| 16 | return float4(0.0f); |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 17 | } |
| 18 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 19 | vertex tint_symbol vertex_main(texture1d<float, access::read_write> tint_symbol_3 [[texture(0)]]) { |
| 20 | float4 const inner_result = vertex_main_inner(tint_symbol_3); |
| 21 | tint_symbol wrapper_result = {}; |
| 22 | wrapper_result.value = inner_result; |
| 23 | return wrapper_result; |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 24 | } |
| 25 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 26 | fragment void fragment_main(texture1d<float, access::read_write> tint_symbol_4 [[texture(0)]]) { |
| 27 | textureStore_877c92(tint_symbol_4); |
| 28 | return; |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 29 | } |
| 30 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 31 | kernel void compute_main(texture1d<float, access::read_write> tint_symbol_5 [[texture(0)]]) { |
| 32 | textureStore_877c92(tint_symbol_5); |
| 33 | return; |
| 34 | } |
James Price | 807f3ef | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 35 | |