2021-07-23 13:10:12 +00:00
|
|
|
static float4 position = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
|
|
static float4 frag_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
|
|
static float4 gl_Position = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
|
|
|
|
|
|
void main_1() {
|
|
|
|
gl_Position = position;
|
|
|
|
frag_color = (position * 0.5f);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct main_out {
|
|
|
|
float4 gl_Position;
|
|
|
|
float4 frag_color_1;
|
|
|
|
};
|
|
|
|
struct tint_symbol_1 {
|
|
|
|
float4 position_param : TEXCOORD0;
|
|
|
|
};
|
|
|
|
struct tint_symbol_2 {
|
|
|
|
float4 frag_color_1 : TEXCOORD1;
|
|
|
|
float4 gl_Position : SV_Position;
|
|
|
|
};
|
|
|
|
|
2021-08-04 22:15:28 +00:00
|
|
|
main_out main_inner(float4 position_param) {
|
2021-07-23 13:10:12 +00:00
|
|
|
position = position_param;
|
|
|
|
main_1();
|
|
|
|
const main_out tint_symbol_3 = {gl_Position, frag_color};
|
2021-08-04 22:15:28 +00:00
|
|
|
return tint_symbol_3;
|
|
|
|
}
|
|
|
|
|
|
|
|
tint_symbol_2 main(tint_symbol_1 tint_symbol) {
|
|
|
|
const main_out inner_result = main_inner(tint_symbol.position_param);
|
|
|
|
tint_symbol_2 wrapper_result = (tint_symbol_2)0;
|
|
|
|
wrapper_result.gl_Position = inner_result.gl_Position;
|
|
|
|
wrapper_result.frag_color_1 = inner_result.frag_color_1;
|
|
|
|
return wrapper_result;
|
2021-07-23 13:10:12 +00:00
|
|
|
}
|