fix unintialised struct in SPIRType

This commit is contained in:
Hugo Devillers 2023-12-06 17:54:34 +01:00
parent 55e08aff31
commit d019358ce0

View File

@ -621,7 +621,7 @@ struct SPIRType : IVariant
uint32_t sampled;
spv::ImageFormat format;
spv::AccessQualifier access;
} image;
} image = {};
// Structs can be declared multiple times if they are used as part of interface blocks.
// We want to detect this so that we only emit the struct definition once.