2021-07-12 16:11:41 +00:00
|
|
|
#include <metal_stdlib>
|
2021-07-12 12:28:52 +00:00
|
|
|
|
2021-07-12 16:11:41 +00:00
|
|
|
using namespace metal;
|
2021-12-03 21:58:53 +00:00
|
|
|
|
|
|
|
#if __METAL_VERSION__ >= 210
|
|
|
|
#define TINT_INVARIANT [[invariant]]
|
|
|
|
#else
|
|
|
|
#define TINT_INVARIANT
|
|
|
|
#endif
|
|
|
|
|
2021-07-12 16:11:41 +00:00
|
|
|
struct Out {
|
|
|
|
float4 pos;
|
|
|
|
};
|
|
|
|
struct tint_symbol_1 {
|
2021-12-03 21:58:53 +00:00
|
|
|
float4 pos [[position]] TINT_INVARIANT;
|
2021-07-12 16:11:41 +00:00
|
|
|
};
|
|
|
|
|
2021-08-04 22:15:28 +00:00
|
|
|
Out tint_symbol_inner() {
|
2021-07-12 16:11:41 +00:00
|
|
|
Out const tint_symbol_2 = {};
|
2021-08-04 22:15:28 +00:00
|
|
|
return tint_symbol_2;
|
|
|
|
}
|
|
|
|
|
|
|
|
vertex tint_symbol_1 tint_symbol() {
|
|
|
|
Out const inner_result = tint_symbol_inner();
|
|
|
|
tint_symbol_1 wrapper_result = {};
|
|
|
|
wrapper_result.pos = inner_result.pos;
|
|
|
|
return wrapper_result;
|
2021-07-12 16:11:41 +00:00
|
|
|
}
|
2021-07-12 12:28:52 +00:00
|
|
|
|