blob: eb513ef765e5824843fde79549fd2d8ade58bf6f [file] [log] [blame]
Ben Clayton2e376a92022-10-26 18:47:02 +00001#include <metal_stdlib>
2
3using namespace metal;
Ben Clayton77a90cb2023-03-06 18:25:08 +00004void textureGather_24b0bd(texture2d_array<float, access::sample> tint_symbol_1, sampler tint_symbol_2, device float4* const tint_symbol_3) {
Ben Clayton4b606152022-11-04 17:06:03 +00005 float2 arg_3 = float2(1.0f);
Ben Clayton2e376a92022-10-26 18:47:02 +00006 int arg_4 = 1;
7 float4 res = tint_symbol_1.gather(tint_symbol_2, arg_3, arg_4, int2(0), component::y);
Ben Clayton77a90cb2023-03-06 18:25:08 +00008 *(tint_symbol_3) = res;
Ben Clayton2e376a92022-10-26 18:47:02 +00009}
10
11struct tint_symbol {
12 float4 value [[position]];
13};
14
Ben Clayton77a90cb2023-03-06 18:25:08 +000015float4 vertex_main_inner(texture2d_array<float, access::sample> tint_symbol_4, sampler tint_symbol_5, device float4* const tint_symbol_6) {
16 textureGather_24b0bd(tint_symbol_4, tint_symbol_5, tint_symbol_6);
Ben Clayton2e376a92022-10-26 18:47:02 +000017 return float4(0.0f);
18}
19
Ben Clayton77a90cb2023-03-06 18:25:08 +000020vertex tint_symbol vertex_main(texture2d_array<float, access::sample> tint_symbol_7 [[texture(0)]], sampler tint_symbol_8 [[sampler(0)]], device float4* tint_symbol_9 [[buffer(0)]]) {
21 float4 const inner_result = vertex_main_inner(tint_symbol_7, tint_symbol_8, tint_symbol_9);
Ben Clayton2e376a92022-10-26 18:47:02 +000022 tint_symbol wrapper_result = {};
23 wrapper_result.value = inner_result;
24 return wrapper_result;
25}
26
Ben Clayton77a90cb2023-03-06 18:25:08 +000027fragment void fragment_main(texture2d_array<float, access::sample> tint_symbol_10 [[texture(0)]], sampler tint_symbol_11 [[sampler(0)]], device float4* tint_symbol_12 [[buffer(0)]]) {
28 textureGather_24b0bd(tint_symbol_10, tint_symbol_11, tint_symbol_12);
Ben Clayton2e376a92022-10-26 18:47:02 +000029 return;
30}
31
Ben Clayton77a90cb2023-03-06 18:25:08 +000032kernel void compute_main(texture2d_array<float, access::sample> tint_symbol_13 [[texture(0)]], sampler tint_symbol_14 [[sampler(0)]], device float4* tint_symbol_15 [[buffer(0)]]) {
33 textureGather_24b0bd(tint_symbol_13, tint_symbol_14, tint_symbol_15);
Ben Clayton2e376a92022-10-26 18:47:02 +000034 return;
35}
36