summaryrefslogtreecommitdiffstats
path: root/AssetLoader/interface/GLTFLoader.hpp
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-12-02 03:48:27 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-12-02 03:48:27 +0000
commitd50d08bd494764564f8f4d516667acf3daf09d30 (patch)
tree38da1da4361599e7d7fbfb1d02b2e7d4c507fa59 /AssetLoader/interface/GLTFLoader.hpp
parentRefcactored GLTFResourceManager: made allocations ref-counted objects (diff)
downloadDiligentTools-d50d08bd494764564f8f4d516667acf3daf09d30.tar.gz
DiligentTools-d50d08bd494764564f8f4d516667acf3daf09d30.zip
GLTFResourceManager: added texture allocation cache
Diffstat (limited to 'AssetLoader/interface/GLTFLoader.hpp')
-rw-r--r--AssetLoader/interface/GLTFLoader.hpp13
1 files changed, 1 insertions, 12 deletions
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<ITexture> wpTexture;
-
- const float4 UVScaleBias;
-
- TextureInfo(ITexture* pTex, const float4& _UVScaleBias) :
- wpTexture{pTex},
- UVScaleBias{_UVScaleBias}
- {}
- };
- std::unordered_map<std::string, TextureInfo> Textures;
+ std::unordered_map<std::string, RefCntWeakPtr<ITexture>> Textures;
};
Model(IRenderDevice* pDevice,