blob: 44081fb7fcdc104e6d5ff0e9c1df572b86a3ef5e [file] [log] [blame]
Ben Claytonda5424b2022-10-24 23:58:53 +00001#include <metal_stdlib>
2
3using namespace metal;
Ben Clayton77a90cb2023-03-06 18:25:08 +00004void textureGather_a0372b(texture2d_array<uint, access::sample> tint_symbol_1, sampler tint_symbol_2, device uint4* const tint_symbol_3) {
Ben Clayton4b606152022-11-04 17:06:03 +00005 uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(1.0f), 1u, int2(0), component::y);
Ben Clayton77a90cb2023-03-06 18:25:08 +00006 *(tint_symbol_3) = res;
Ben Claytonda5424b2022-10-24 23:58:53 +00007}
8
9struct tint_symbol {
10 float4 value [[position]];
11};
12
Ben Clayton77a90cb2023-03-06 18:25:08 +000013float4 vertex_main_inner(texture2d_array<uint, access::sample> tint_symbol_4, sampler tint_symbol_5, device uint4* const tint_symbol_6) {
14 textureGather_a0372b(tint_symbol_4, tint_symbol_5, tint_symbol_6);
Ben Claytonda5424b2022-10-24 23:58:53 +000015 return float4(0.0f);
16}
17
Ben Clayton77a90cb2023-03-06 18:25:08 +000018vertex tint_symbol vertex_main(texture2d_array<uint, access::sample> tint_symbol_7 [[texture(0)]], sampler tint_symbol_8 [[sampler(0)]], device uint4* tint_symbol_9 [[buffer(0)]]) {
19 float4 const inner_result = vertex_main_inner(tint_symbol_7, tint_symbol_8, tint_symbol_9);
Ben Claytonda5424b2022-10-24 23:58:53 +000020 tint_symbol wrapper_result = {};
21 wrapper_result.value = inner_result;
22 return wrapper_result;
23}
24
Ben Clayton77a90cb2023-03-06 18:25:08 +000025fragment void fragment_main(texture2d_array<uint, access::sample> tint_symbol_10 [[texture(0)]], sampler tint_symbol_11 [[sampler(0)]], device uint4* tint_symbol_12 [[buffer(0)]]) {
26 textureGather_a0372b(tint_symbol_10, tint_symbol_11, tint_symbol_12);
Ben Claytonda5424b2022-10-24 23:58:53 +000027 return;
28}
29
Ben Clayton77a90cb2023-03-06 18:25:08 +000030kernel void compute_main(texture2d_array<uint, access::sample> tint_symbol_13 [[texture(0)]], sampler tint_symbol_14 [[sampler(0)]], device uint4* tint_symbol_15 [[buffer(0)]]) {
31 textureGather_a0372b(tint_symbol_13, tint_symbol_14, tint_symbol_15);
Ben Claytonda5424b2022-10-24 23:58:53 +000032 return;
33}
34