2021-05-18 09:24:18 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
2023-03-20 21:46:01 +00:00
|
|
|
struct tint_private_vars_struct {
|
|
|
|
float4 gl_Position;
|
|
|
|
};
|
|
|
|
|
|
|
|
void main_1(thread tint_private_vars_struct* const tint_private_vars) {
|
|
|
|
(*(tint_private_vars)).gl_Position = float4(0.0f);
|
2022-02-09 23:55:51 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-06-17 09:10:04 +00:00
|
|
|
struct main_out {
|
|
|
|
float4 gl_Position;
|
|
|
|
};
|
2022-02-09 23:55:51 +00:00
|
|
|
|
2021-06-17 09:10:04 +00:00
|
|
|
struct tint_symbol_1 {
|
2021-05-18 09:24:18 +00:00
|
|
|
float4 gl_Position [[position]];
|
|
|
|
};
|
|
|
|
|
2023-03-20 21:46:01 +00:00
|
|
|
main_out tint_symbol_inner(thread tint_private_vars_struct* const tint_private_vars) {
|
|
|
|
main_1(tint_private_vars);
|
|
|
|
main_out const tint_symbol_2 = {.gl_Position=(*(tint_private_vars)).gl_Position};
|
2021-08-04 22:15:28 +00:00
|
|
|
return tint_symbol_2;
|
|
|
|
}
|
|
|
|
|
2021-06-17 09:10:04 +00:00
|
|
|
vertex tint_symbol_1 tint_symbol() {
|
2023-03-20 21:46:01 +00:00
|
|
|
thread tint_private_vars_struct tint_private_vars = {};
|
|
|
|
main_out const inner_result = tint_symbol_inner(&(tint_private_vars));
|
2021-08-04 22:15:28 +00:00
|
|
|
tint_symbol_1 wrapper_result = {};
|
|
|
|
wrapper_result.gl_Position = inner_result.gl_Position;
|
|
|
|
return wrapper_result;
|
2021-05-18 09:24:18 +00:00
|
|
|
}
|
|
|
|
|