blob: ae3a893ec0aeecbf6a3bfa82e944b7e7a539cb1b [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 ldexp_a6126e() {
13 int3 arg_1 = int3(1);
14 float3 res = ldexp(float3(1.0f), arg_1);
15}
James Price48be7e82024-06-19 22:38:07 +000016
dan sinclairb4697b762023-11-24 09:42:19 +000017fragment void fragment_main() {
18 ldexp_a6126e();
19}
James Price48be7e82024-06-19 22:38:07 +000020
dan sinclairb4697b762023-11-24 09:42:19 +000021kernel void compute_main() {
22 ldexp_a6126e();
23}
James Price48be7e82024-06-19 22:38:07 +000024
James Price2cc6b3c2024-06-13 20:31:41 +000025VertexOutput vertex_main_inner() {
26 VertexOutput out = {};
27 out.pos = float4(0.0f);
28 ldexp_a6126e();
29 return out;
30}
James Price48be7e82024-06-19 22:38:07 +000031
James Price02cf9112024-05-29 14:43:19 +000032vertex vertex_main_outputs vertex_main() {
James Price6d87fa62024-09-03 23:24:13 +000033 vertex_main_outputs tint_wrapper_result = {};
34 tint_wrapper_result.VertexOutput_pos = vertex_main_inner().pos;
35 return tint_wrapper_result;
James Price02cf9112024-05-29 14:43:19 +000036}