diff options
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; }; |
