Skip to content

Commit 9bc4e13

Browse files
committed
use null-hash as invalid hash
1 parent 5709838 commit 9bc4e13

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/nbl/asset/IAssetManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class NBL_API2 IAssetManager : public core::IReferenceCounted
127127
m_compilerSet(std::move(compilerSet)),
128128
m_defaultLoaderOverride(this)
129129
{
130+
assert(IPreHashed::INVALID_HASH == static_cast<core::blake3_hash_t>(core::blake3_hasher{}));
130131
initializeMeshTools();
131132

132133
for (size_t i = 0u; i < m_assetCache.size(); ++i)

include/nbl/asset/IPreHashed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace nbl::asset
1414
class IPreHashed : public IAsset
1515
{
1616
public:
17-
constexpr static inline core::blake3_hash_t INVALID_HASH = {};
17+
constexpr static inline core::blake3_hash_t INVALID_HASH = { 0xaf,0x13,0x49,0xb9,0xf5,0xf9,0xa1,0xa6,0xa0,0x40,0x4d,0xea,0x36,0xdc,0xc9,0x49,0x9b,0xcb,0x25,0xc9,0xad,0xc1,0x12,0xb7,0xcc,0x9a,0x93,0xca,0xe4,0x1f,0x32,0x62 };
1818
//
1919
inline const core::blake3_hash_t& getContentHash() const {return m_contentHash;}
2020
//

0 commit comments

Comments
 (0)