MSL handle input structs originating from HLSL.

This commit is contained in:
Bill Hollings 2016-08-31 22:51:51 -04:00
parent cf476f36d1
commit b4ce4e4b2f

View File

@ -415,9 +415,7 @@ uint32_t CompilerMSL::add_interface_struct(StorageClass storage, uint32_t vtx_bi
}
auto &type = get<SPIRType>(p_var->basetype);
auto &type_dec = meta[type.self].decoration;
if (type_dec.decoration_flags & (1ull << DecorationBlock))
if (type.basetype == SPIRType::Struct)
{
// Flatten the struct members into the interface struct
uint32_t i = 0;