SPIRV-Cross/reference/shaders/asm/frag/empty-struct.asm.frag
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

26 lines
356 B
GLSL

#version 450
struct EmptyStructTest
{
int empty_struct_member;
};
float GetValue(EmptyStructTest self)
{
return 0.0;
}
float GetValue_1(EmptyStructTest self)
{
return 0.0;
}
void main()
{
EmptyStructTest _23 = EmptyStructTest(0);
EmptyStructTest emptyStruct;
float value = GetValue(emptyStruct);
value = GetValue_1(_23);
}