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
|
2023-04-24 19:41:41 +00:00
|
|
|
#define TINT_INVARIANT [[invariant]]
|
2021-12-03 21:58:53 +00:00
|
|
|
#else
|
|
|
|
#define TINT_INVARIANT
|
|
|
|
#endif
|
|
|
|
|
2021-07-12 16:11:41 +00:00
|
|
|
struct Out {
|
|
|
|
float4 pos;
|
|
|
|
};
|
2022-02-09 23:55:51 +00:00
|
|
|
|
2021-07-12 16:11:41 +00:00
|
|
|
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() {
|
2022-08-11 02:28:01 +00:00
|
|
|
Out const tint_symbol_2 = Out{};
|
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
|
|
|
|