blob: cfa993aaaecf74667b0cdc31e6e2521df747921c [file] [log] [blame]
James Price88c231b2023-08-15 12:47:28 +00001#include <metal_stdlib>
2
3using namespace metal;
4void textureLoad_f379e2(texture2d_array<float, access::read> tint_symbol_1, device float4* const tint_symbol_2) {
5 int2 arg_1 = int2(1);
6 int arg_2 = 1;
7 float4 res = tint_symbol_1.read(uint2(arg_1), arg_2);
8 *(tint_symbol_2) = res;
9}
10
11struct tint_symbol {
12 float4 value [[position]];
13};
14
15float4 vertex_main_inner(texture2d_array<float, access::read> tint_symbol_3, device float4* const tint_symbol_4) {
16 textureLoad_f379e2(tint_symbol_3, tint_symbol_4);
17 return float4(0.0f);
18}
19
20vertex tint_symbol vertex_main(texture2d_array<float, access::read> tint_symbol_5 [[texture(0)]], device float4* tint_symbol_6 [[buffer(0)]]) {
21 float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6);
22 tint_symbol wrapper_result = {};
23 wrapper_result.value = inner_result;
24 return wrapper_result;
25}
26
27fragment void fragment_main(texture2d_array<float, access::read> tint_symbol_7 [[texture(0)]], device float4* tint_symbol_8 [[buffer(0)]]) {
28 textureLoad_f379e2(tint_symbol_7, tint_symbol_8);
29 return;
30}
31
32kernel void compute_main(texture2d_array<float, access::read> tint_symbol_9 [[texture(0)]], device float4* tint_symbol_10 [[buffer(0)]]) {
33 textureLoad_f379e2(tint_symbol_9, tint_symbol_10);
34 return;
35}
36