summaryrefslogtreecommitdiffstats
path: root/AssetLoader/interface
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-12-02 19:16:57 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-12-02 19:16:57 +0000
commit398bdccf4ef6d5dfca5e27f6e25f1856deceefcb (patch)
tree1254931484e63721fca1fa79ef3403fb8a41b801 /AssetLoader/interface
parentGLTFResourceManager: added texture allocation cache (diff)
downloadDiligentTools-398bdccf4ef6d5dfca5e27f6e25f1856deceefcb.tar.gz
DiligentTools-398bdccf4ef6d5dfca5e27f6e25f1856deceefcb.zip
GLTF Loader: fixed few issues with texture cache
Diffstat (limited to 'AssetLoader/interface')
-rw-r--r--AssetLoader/interface/GLTFLoader.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp
index b395c8c..2575898 100644
--- a/AssetLoader/interface/GLTFLoader.hpp
+++ b/AssetLoader/interface/GLTFLoader.hpp
@@ -426,6 +426,11 @@ private:
float4 UVScaleBias{1, 1, 0, 0};
RefCntAutoPtr<GLTFResourceManager::TextureAllocation> pCacheAllocation;
+
+ bool IsValid() const
+ {
+ return pTexture || pCacheAllocation;
+ }
};
std::vector<TextureInfo> Textures;
};