blob: a3bb007860feba732007b5c556b38aa7d45a8a33 [file] [log] [blame]
Ben Claytonb07a7ce2021-06-03 11:26:17 +00001#include <metal_stdlib>
2
3using namespace metal;
James Price9fd3bef2021-06-04 17:31:48 +00004struct tint_symbol {
5 float4 value [[position]];
6};
7
Ben Claytonb07a7ce2021-06-03 11:26:17 +00008void sign_dd790e() {
Ben Claytonf24b37e2021-06-28 15:30:57 +00009 float res = sign(1.0f);
Ben Claytonb07a7ce2021-06-03 11:26:17 +000010}
11
James Pricea5d73ce2021-08-04 22:15:28 +000012float4 vertex_main_inner() {
Ben Claytonb07a7ce2021-06-03 11:26:17 +000013 sign_dd790e();
James Pricea5d73ce2021-08-04 22:15:28 +000014 return float4();
15}
16
17vertex tint_symbol vertex_main() {
18 float4 const inner_result = vertex_main_inner();
19 tint_symbol wrapper_result = {};
20 wrapper_result.value = inner_result;
21 return wrapper_result;
Ben Claytonb07a7ce2021-06-03 11:26:17 +000022}
23
24fragment void fragment_main() {
25 sign_dd790e();
26 return;
27}
28
29kernel void compute_main() {
30 sign_dd790e();
31 return;
32}
33