blob: 0f2d4f2884faed5c9440e4380f63fa7baa04ef37 [file] [log] [blame]
dan sinclair892af222024-12-06 14:16:09 +00001//
2// fragment_main
3//
4#include <metal_stdlib>
5
6using namespace metal;
7float textureSampleLevel_73e892(depth2d<float, access::sample> tint_symbol, sampler tint_symbol_1) {
8 float res = tint_symbol.sample(tint_symbol_1, float2(1.0f), level(1u));
9 return res;
10}
11
12struct VertexOutput {
13 float4 pos;
14 float prevent_dce;
15};
16
17fragment void fragment_main(device float* tint_symbol_2 [[buffer(0)]], depth2d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
18 *(tint_symbol_2) = textureSampleLevel_73e892(tint_symbol_3, tint_symbol_4);
19 return;
20}
21
22//
23// compute_main
24//
25#include <metal_stdlib>
26
27using namespace metal;
28float textureSampleLevel_73e892(depth2d<float, access::sample> tint_symbol, sampler tint_symbol_1) {
29 float res = tint_symbol.sample(tint_symbol_1, float2(1.0f), level(1u));
30 return res;
31}
32
33struct VertexOutput {
34 float4 pos;
35 float prevent_dce;
36};
37
38kernel void compute_main(device float* tint_symbol_2 [[buffer(0)]], depth2d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
39 *(tint_symbol_2) = textureSampleLevel_73e892(tint_symbol_3, tint_symbol_4);
40 return;
41}
42
43//
44// vertex_main
45//
Ben Claytonda5424b2022-10-24 23:58:53 +000046#include <metal_stdlib>
47
48using namespace metal;
Natalie Chouinarde9027182024-06-13 18:50:19 +000049float textureSampleLevel_73e892(depth2d<float, access::sample> tint_symbol_1, sampler tint_symbol_2) {
Ben Clayton4b606152022-11-04 17:06:03 +000050 float res = tint_symbol_1.sample(tint_symbol_2, float2(1.0f), level(1u));
Natalie Chouinarde9027182024-06-13 18:50:19 +000051 return res;
Ben Claytonda5424b2022-10-24 23:58:53 +000052}
53
Natalie Chouinarde9027182024-06-13 18:50:19 +000054struct VertexOutput {
55 float4 pos;
56 float prevent_dce;
Ben Claytonda5424b2022-10-24 23:58:53 +000057};
58
Natalie Chouinarde9027182024-06-13 18:50:19 +000059struct tint_symbol {
60 float prevent_dce [[user(locn0)]] [[flat]];
61 float4 pos [[position]];
62};
63
dan sinclair892af222024-12-06 14:16:09 +000064VertexOutput vertex_main_inner(depth2d<float, access::sample> tint_symbol_3, sampler tint_symbol_4) {
Natalie Chouinarde9027182024-06-13 18:50:19 +000065 VertexOutput out = {};
66 out.pos = float4(0.0f);
dan sinclair892af222024-12-06 14:16:09 +000067 out.prevent_dce = textureSampleLevel_73e892(tint_symbol_3, tint_symbol_4);
Natalie Chouinarde9027182024-06-13 18:50:19 +000068 return out;
Ben Claytonda5424b2022-10-24 23:58:53 +000069}
70
dan sinclair892af222024-12-06 14:16:09 +000071vertex tint_symbol vertex_main(depth2d<float, access::sample> tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) {
72 VertexOutput const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6);
Ben Claytonda5424b2022-10-24 23:58:53 +000073 tint_symbol wrapper_result = {};
Natalie Chouinarde9027182024-06-13 18:50:19 +000074 wrapper_result.pos = inner_result.pos;
75 wrapper_result.prevent_dce = inner_result.prevent_dce;
Ben Claytonda5424b2022-10-24 23:58:53 +000076 return wrapper_result;
77}
78