694b314f87
Need to fake it by pretending it has one dummy member.
35 lines
435 B
GLSL
35 lines
435 B
GLSL
#version 450
|
|
|
|
struct VSInput
|
|
{
|
|
vec4 position;
|
|
};
|
|
|
|
struct VSOutput
|
|
{
|
|
vec4 position;
|
|
};
|
|
|
|
struct VSOutput_1
|
|
{
|
|
int empty_struct_member;
|
|
};
|
|
|
|
layout(location = 0) in vec4 position;
|
|
|
|
VSOutput _main(VSInput _input)
|
|
{
|
|
VSOutput _out;
|
|
_out.position = _input.position;
|
|
return _out;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
VSInput _input;
|
|
_input.position = position;
|
|
VSInput param = _input;
|
|
gl_Position = _main(param).position;
|
|
}
|
|
|