diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-12-02 19:16:57 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-12-02 19:16:57 +0000 |
| commit | 398bdccf4ef6d5dfca5e27f6e25f1856deceefcb (patch) | |
| tree | 1254931484e63721fca1fa79ef3403fb8a41b801 /AssetLoader/interface | |
| parent | GLTFResourceManager: added texture allocation cache (diff) | |
| download | DiligentTools-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.hpp | 5 |
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; }; |
