2021-06-03 11:26:17 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
2021-06-04 17:31:48 +00:00
|
|
|
struct tint_symbol {
|
|
|
|
float4 value [[position]];
|
|
|
|
};
|
|
|
|
|
2021-06-03 11:26:17 +00:00
|
|
|
void sqrt_20c74e() {
|
|
|
|
float res = sqrt(1.0f);
|
|
|
|
}
|
|
|
|
|
2021-06-04 17:31:48 +00:00
|
|
|
vertex tint_symbol vertex_main() {
|
2021-06-03 11:26:17 +00:00
|
|
|
sqrt_20c74e();
|
2021-06-04 17:31:48 +00:00
|
|
|
tint_symbol const tint_symbol_1 = {.value=float4()};
|
|
|
|
return tint_symbol_1;
|
2021-06-03 11:26:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fragment void fragment_main() {
|
|
|
|
sqrt_20c74e();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel void compute_main() {
|
|
|
|
sqrt_20c74e();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|