diff --git a/spirv_common.hpp b/spirv_common.hpp index fbbcab8b..77cb63b7 100644 --- a/spirv_common.hpp +++ b/spirv_common.hpp @@ -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.