blob: e1e85c1c0d16bc362aa0cececd279158b928bc43 [file] [log] [blame]
dan sinclairb4697b762023-11-24 09:42:19 +00001#include <metal_stdlib>
2using namespace metal;
James Price48be7e82024-06-19 22:38:07 +00003
James Price2cc6b3c2024-06-13 20:31:41 +00004struct VertexOutput {
5 float4 pos;
6};
James Price48be7e82024-06-19 22:38:07 +00007
James Price02cf9112024-05-29 14:43:19 +00008struct vertex_main_outputs {
James Price2cc6b3c2024-06-13 20:31:41 +00009 float4 VertexOutput_pos [[position]];
James Price02cf9112024-05-29 14:43:19 +000010};
dan sinclairf1f381a2023-11-22 09:44:15 +000011
dan sinclairb4697b762023-11-24 09:42:19 +000012void clamp_9d731c() {
13 float2 res = float2(1.0f);
14}
James Price48be7e82024-06-19 22:38:07 +000015
dan sinclairb4697b762023-11-24 09:42:19 +000016fragment void fragment_main() {
17 clamp_9d731c();
18}
James Price48be7e82024-06-19 22:38:07 +000019
dan sinclairb4697b762023-11-24 09:42:19 +000020kernel void compute_main() {
21 clamp_9d731c();
22}
James Price48be7e82024-06-19 22:38:07 +000023
James Price2cc6b3c2024-06-13 20:31:41 +000024VertexOutput vertex_main_inner() {
25 VertexOutput out = {};
26 out.pos = float4(0.0f);
27 clamp_9d731c();
28 return out;
29}
James Price48be7e82024-06-19 22:38:07 +000030
James Price02cf9112024-05-29 14:43:19 +000031vertex vertex_main_outputs vertex_main() {
James Price2cc6b3c2024-06-13 20:31:41 +000032 return vertex_main_outputs{.VertexOutput_pos=vertex_main_inner().pos};
James Price02cf9112024-05-29 14:43:19 +000033}