SPIRV-Cross/reference/shaders-msl-no-opt/asm/vert/empty-struct-composite.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

17 lines
188 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Test
{
int empty_struct_member;
};
vertex void main0()
{
Test _14 = Test{ 0 };
Test t = _14;
}