Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | |
| 3 | using namespace metal; |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 4 | void textureStore_38e8d7(texture2d_array<uint, access::write> tint_symbol_1) { |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 5 | tint_symbol_1.write(uint4(1u), uint2(int2(1)), 1); |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 6 | } |
| 7 | |
Ben Clayton | 8ec32a6 | 2022-02-09 23:55:51 +0000 | [diff] [blame] | 8 | struct tint_symbol { |
| 9 | float4 value [[position]]; |
| 10 | }; |
| 11 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 12 | float4 vertex_main_inner(texture2d_array<uint, access::write> tint_symbol_2) { |
| 13 | textureStore_38e8d7(tint_symbol_2); |
Ben Clayton | cb6ddd2 | 2022-06-01 10:08:29 +0000 | [diff] [blame] | 14 | return float4(0.0f); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 15 | } |
| 16 | |
James Price | 0f1efe0 | 2021-06-11 12:46:26 +0000 | [diff] [blame] | 17 | vertex tint_symbol vertex_main(texture2d_array<uint, access::write> tint_symbol_3 [[texture(0)]]) { |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 18 | float4 const inner_result = vertex_main_inner(tint_symbol_3); |
| 19 | tint_symbol wrapper_result = {}; |
| 20 | wrapper_result.value = inner_result; |
| 21 | return wrapper_result; |
James Price | 0f1efe0 | 2021-06-11 12:46:26 +0000 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | fragment void fragment_main(texture2d_array<uint, access::write> tint_symbol_4 [[texture(0)]]) { |
| 25 | textureStore_38e8d7(tint_symbol_4); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 26 | return; |
| 27 | } |
| 28 | |
James Price | 0f1efe0 | 2021-06-11 12:46:26 +0000 | [diff] [blame] | 29 | kernel void compute_main(texture2d_array<uint, access::write> tint_symbol_5 [[texture(0)]]) { |
| 30 | textureStore_38e8d7(tint_symbol_5); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 31 | return; |
| 32 | } |
| 33 | |