SPIRV-Cross/reference/shaders/asm/vert/empty-io.asm.vert
Hans-Kristian Arntzen 694b314f87 Support empty structs.
Need to fake it by pretending it has one dummy member.
2018-04-05 16:26:54 +02:00

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;
}