Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | |
| 3 | using namespace metal; |
James Price | 0f1efe0 | 2021-06-11 12:46:26 +0000 | [diff] [blame] | 4 | struct tint_symbol { |
| 5 | float4 value [[position]]; |
| 6 | }; |
| 7 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 8 | void textureSampleLevel_690d95(texture2d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) { |
| 9 | float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), level(1.0f), int2()); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 10 | } |
| 11 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 12 | float4 vertex_main_inner(texture2d<float, access::sample> tint_symbol_3, sampler tint_symbol_4) { |
| 13 | textureSampleLevel_690d95(tint_symbol_3, tint_symbol_4); |
| 14 | return float4(); |
James Price | 0f1efe0 | 2021-06-11 12:46:26 +0000 | [diff] [blame] | 15 | } |
| 16 | |
James Price | 8094553 | 2021-08-12 19:47:20 +0000 | [diff] [blame] | 17 | vertex tint_symbol vertex_main(texture2d<float, access::sample> tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 18 | float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6); |
| 19 | tint_symbol wrapper_result = {}; |
| 20 | wrapper_result.value = inner_result; |
| 21 | return wrapper_result; |
| 22 | } |
| 23 | |
James Price | 8094553 | 2021-08-12 19:47:20 +0000 | [diff] [blame] | 24 | fragment void fragment_main(texture2d<float, access::sample> tint_symbol_7 [[texture(0)]], sampler tint_symbol_8 [[sampler(0)]]) { |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 25 | textureSampleLevel_690d95(tint_symbol_7, tint_symbol_8); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 26 | return; |
| 27 | } |
| 28 | |
James Price | 8094553 | 2021-08-12 19:47:20 +0000 | [diff] [blame] | 29 | kernel void compute_main(texture2d<float, access::sample> tint_symbol_9 [[texture(0)]], sampler tint_symbol_10 [[sampler(0)]]) { |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 30 | textureSampleLevel_690d95(tint_symbol_9, tint_symbol_10); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 31 | return; |
| 32 | } |
| 33 | |