blob: b869ffa17d3d842f6e43c6639959fff2c4407508 [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 textureLoad_8527b1(texture2d_array<uint, access::sample> tint_symbol_1, device uint4* const tint_symbol_2) {
Ben Clayton4b606152022-11-04 17:06:03 +00005 uint4 res = tint_symbol_1.read(uint2(uint2(1u)), 1u, 1u);
Ben Clayton77a90cb2023-03-06 18:25:08 +00006 *(tint_symbol_2) = 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_3, device uint4* const tint_symbol_4) {
14 textureLoad_8527b1(tint_symbol_3, tint_symbol_4);
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_5 [[texture(0)]], device uint4* tint_symbol_6 [[buffer(0)]]) {
19 float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6);
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_7 [[texture(0)]], device uint4* tint_symbol_8 [[buffer(0)]]) {
26 textureLoad_8527b1(tint_symbol_7, tint_symbol_8);
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_9 [[texture(0)]], device uint4* tint_symbol_10 [[buffer(0)]]) {
31 textureLoad_8527b1(tint_symbol_9, tint_symbol_10);
Ben Claytonda5424b2022-10-24 23:58:53 +000032 return;
33}
34