From d50d08bd494764564f8f4d516667acf3daf09d30 Mon Sep 17 00:00:00 2001 From: assiduous Date: Tue, 1 Dec 2020 19:48:27 -0800 Subject: GLTFResourceManager: added texture allocation cache --- AssetLoader/interface/GLTFLoader.hpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'AssetLoader/interface/GLTFLoader.hpp') diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp index e66e808..b395c8c 100644 --- a/AssetLoader/interface/GLTFLoader.hpp +++ b/AssetLoader/interface/GLTFLoader.hpp @@ -316,18 +316,7 @@ struct Model { std::mutex TexturesMtx; - struct TextureInfo - { - RefCntWeakPtr wpTexture; - - const float4 UVScaleBias; - - TextureInfo(ITexture* pTex, const float4& _UVScaleBias) : - wpTexture{pTex}, - UVScaleBias{_UVScaleBias} - {} - }; - std::unordered_map Textures; + std::unordered_map> Textures; }; Model(IRenderDevice* pDevice, -- cgit v1.2.3