blob: b44bdcd7c42206f88d18ec54e8daf00980f67bab [file] [log] [blame]
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00001#include <metal_stdlib>
2
3using namespace metal;
Ben Clayton77a90cb2023-03-06 18:25:08 +00004void log2_fb9f0b(device half2* const tint_symbol_1) {
dan sinclairf2ad5fd2022-11-23 17:34:40 +00005 half2 res = half2(0.0h);
Ben Clayton77a90cb2023-03-06 18:25:08 +00006 *(tint_symbol_1) = res;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00007}
8
9struct tint_symbol {
10 float4 value [[position]];
11};
12
Ben Clayton77a90cb2023-03-06 18:25:08 +000013float4 vertex_main_inner(device half2* const tint_symbol_2) {
14 log2_fb9f0b(tint_symbol_2);
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000015 return float4(0.0f);
16}
17
Ben Clayton77a90cb2023-03-06 18:25:08 +000018vertex tint_symbol vertex_main(device half2* tint_symbol_3 [[buffer(0)]]) {
19 float4 const inner_result = vertex_main_inner(tint_symbol_3);
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +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(device half2* tint_symbol_4 [[buffer(0)]]) {
26 log2_fb9f0b(tint_symbol_4);
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000027 return;
28}
29
Ben Clayton77a90cb2023-03-06 18:25:08 +000030kernel void compute_main(device half2* tint_symbol_5 [[buffer(0)]]) {
31 log2_fb9f0b(tint_symbol_5);
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000032 return;
33}
34