diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h index c9f0246318..88fb5c7353 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.h +++ b/Source/Core/VideoCommon/ShaderGenCommon.h @@ -71,6 +71,8 @@ public: static_assert(std::is_trivially_copyable_v, "uid_data must be a trivially copyable type"); + ShaderUid() { memset(GetUidData(), 0, GetUidDataSize()); } + bool operator==(const ShaderUid& obj) const { return memcmp(GetUidData(), obj.GetUidData(), GetUidDataSize()) == 0;