2021-06-03 09:38:34 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
struct VertexOutput {
|
|
|
|
float4 pos;
|
|
|
|
int loc0;
|
|
|
|
};
|
|
|
|
|
|
|
|
VertexOutput foo(float x) {
|
2021-06-03 18:12:15 +00:00
|
|
|
VertexOutput const tint_symbol = {.pos=float4(x, x, x, 1.0f), .loc0=42};
|
2021-06-03 09:38:34 +00:00
|
|
|
return tint_symbol;
|
|
|
|
}
|
|
|
|
|
|
|
|
VertexOutput vert_main1() {
|
|
|
|
return foo(0.5f);
|
|
|
|
}
|
|
|
|
|
|
|
|
VertexOutput vert_main2() {
|
|
|
|
return foo(0.25f);
|
|
|
|
}
|
|
|
|
|