blob: 0f9c39ba9426f0a91942c8212b6e00cc49b8dead [file] [log] [blame]
Ben Clayton13f08902022-10-26 18:36:44 +00001#include <metal_stdlib>
2
3using namespace metal;
Ben Clayton77a90cb2023-03-06 18:25:08 +00004void textureDimensions_98b2d3(texturecube_array<int, access::sample> tint_symbol_1, device uint2* const tint_symbol_2) {
Ben Clayton13f08902022-10-26 18:36:44 +00005 uint2 res = uint2(tint_symbol_1.get_width(), tint_symbol_1.get_height());
Ben Clayton77a90cb2023-03-06 18:25:08 +00006 *(tint_symbol_2) = res;
Ben Clayton13f08902022-10-26 18:36:44 +00007}
8
9struct tint_symbol {
10 float4 value [[position]];
11};
12
Ben Clayton77a90cb2023-03-06 18:25:08 +000013float4 vertex_main_inner(texturecube_array<int, access::sample> tint_symbol_3, device uint2* const tint_symbol_4) {
14 textureDimensions_98b2d3(tint_symbol_3, tint_symbol_4);
Ben Clayton13f08902022-10-26 18:36:44 +000015 return float4(0.0f);
16}
17
Ben Clayton77a90cb2023-03-06 18:25:08 +000018vertex tint_symbol vertex_main(texturecube_array<int, access::sample> tint_symbol_5 [[texture(0)]], device uint2* tint_symbol_6 [[buffer(0)]]) {
19 float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6);
Ben Clayton13f08902022-10-26 18:36:44 +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(texturecube_array<int, access::sample> tint_symbol_7 [[texture(0)]], device uint2* tint_symbol_8 [[buffer(0)]]) {
26 textureDimensions_98b2d3(tint_symbol_7, tint_symbol_8);
Ben Clayton13f08902022-10-26 18:36:44 +000027 return;
28}
29
Ben Clayton77a90cb2023-03-06 18:25:08 +000030kernel void compute_main(texturecube_array<int, access::sample> tint_symbol_9 [[texture(0)]], device uint2* tint_symbol_10 [[buffer(0)]]) {
31 textureDimensions_98b2d3(tint_symbol_9, tint_symbol_10);
Ben Clayton13f08902022-10-26 18:36:44 +000032 return;
33}
34