Merge pull request #10755 from tellowkrinkle/DebugUID

VideoCommon: Don't add garbage to shader uids in debug builds
This commit is contained in:
Pierre Bourdon 2022-06-22 14:33:23 +02:00 committed by GitHub
commit 6ddff87d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ public:
static_assert(std::is_trivially_copyable_v<uid_data>,
"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;