39 lines
634 B
Plaintext
39 lines
634 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
int tint_sign(int v) {
|
|
return select(select(-1, 1, (v > 0)), 0, (v == 0));
|
|
}
|
|
|
|
void sign_3233fa() {
|
|
int arg_0 = 1;
|
|
int res = tint_sign(arg_0);
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value [[position]];
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
sign_3233fa();
|
|
return float4(0.0f);
|
|
}
|
|
|
|
vertex tint_symbol vertex_main() {
|
|
float4 const inner_result = vertex_main_inner();
|
|
tint_symbol wrapper_result = {};
|
|
wrapper_result.value = inner_result;
|
|
return wrapper_result;
|
|
}
|
|
|
|
fragment void fragment_main() {
|
|
sign_3233fa();
|
|
return;
|
|
}
|
|
|
|
kernel void compute_main() {
|
|
sign_3233fa();
|
|
return;
|
|
}
|
|
|