blob: 7b64c2baf4f7d4f37cbf4d0aa9b653dd8c23fab2 [file] [log] [blame]
Ben Claytonc0af5c52022-06-02 14:36:10 +00001#include <metal_stdlib>
2
3using namespace metal;
Ben Clayton77a90cb2023-03-06 18:25:08 +00004void textureLoad_19cf87(depth2d<float, access::sample> tint_symbol_1, device float* const tint_symbol_2) {
Ben Clayton4b606152022-11-04 17:06:03 +00005 int2 arg_1 = int2(1);
Ben Claytonc3adc782022-10-25 13:08:45 +00006 int arg_2 = 1;
Ben Claytonc0af5c52022-06-02 14:36:10 +00007 float res = tint_symbol_1.read(uint2(arg_1), arg_2);
Ben Clayton77a90cb2023-03-06 18:25:08 +00008 *(tint_symbol_2) = res;
Ben Claytonc0af5c52022-06-02 14:36:10 +00009}
10
11struct tint_symbol {
12 float4 value [[position]];
13};
14
Ben Clayton77a90cb2023-03-06 18:25:08 +000015float4 vertex_main_inner(depth2d<float, access::sample> tint_symbol_3, device float* const tint_symbol_4) {
16 textureLoad_19cf87(tint_symbol_3, tint_symbol_4);
Ben Claytonc0af5c52022-06-02 14:36:10 +000017 return float4(0.0f);
18}
19
Ben Clayton77a90cb2023-03-06 18:25:08 +000020vertex tint_symbol vertex_main(depth2d<float, access::sample> tint_symbol_5 [[texture(0)]], device float* tint_symbol_6 [[buffer(0)]]) {
21 float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6);
Ben Claytonc0af5c52022-06-02 14:36:10 +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(depth2d<float, access::sample> tint_symbol_7 [[texture(0)]], device float* tint_symbol_8 [[buffer(0)]]) {
28 textureLoad_19cf87(tint_symbol_7, tint_symbol_8);
Ben Claytonc0af5c52022-06-02 14:36:10 +000029 return;
30}
31
Ben Clayton77a90cb2023-03-06 18:25:08 +000032kernel void compute_main(depth2d<float, access::sample> tint_symbol_9 [[texture(0)]], device float* tint_symbol_10 [[buffer(0)]]) {
33 textureLoad_19cf87(tint_symbol_9, tint_symbol_10);
Ben Claytonc0af5c52022-06-02 14:36:10 +000034 return;
35}
36