diff options
Diffstat (limited to 'AssetLoader/interface/GLTFResourceManager.hpp')
| -rw-r--r-- | AssetLoader/interface/GLTFResourceManager.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/AssetLoader/interface/GLTFResourceManager.hpp b/AssetLoader/interface/GLTFResourceManager.hpp index bd3ea19..f42c975 100644 --- a/AssetLoader/interface/GLTFResourceManager.hpp +++ b/AssetLoader/interface/GLTFResourceManager.hpp @@ -82,7 +82,7 @@ public: RefCntAutoPtr<ITextureAtlasSuballocation> FindAllocation(const char* CacheId); - Uint32 GetResourceVersion() + Uint32 GetTextureVersion() { Uint32 Version = 0; @@ -93,6 +93,11 @@ public: return Version; } + Uint32 GetBufferVersion(Uint32 Index) const + { + return m_BufferSuballocators[Index]->GetVersion(); + } + IBuffer* GetBuffer(Uint32 Index, IRenderDevice* pDevice, IDeviceContext* pContext) { return m_BufferSuballocators[Index]->GetBuffer(pDevice, pContext); @@ -131,8 +136,6 @@ private: using TexAllocationsHashMapType = std::unordered_map<std::string, RefCntWeakPtr<ITextureAtlasSuballocation>>; std::mutex m_TexAllocationsMtx; TexAllocationsHashMapType m_TexAllocations; - - std::atomic_uint32_t m_ResourceVersion = {}; }; } // namespace GLTF |
