From 59cded2211435bb4e2a0648f9efe9624b3ad4cb4 Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 4 Nov 2020 18:34:19 -0800 Subject: GLTFLoader: enabled creating the GLTF models without device context --- AssetLoader/interface/GLTFLoader.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'AssetLoader/interface') diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp index 0a9275b..1420d89 100644 --- a/AssetLoader/interface/GLTFLoader.hpp +++ b/AssetLoader/interface/GLTFLoader.hpp @@ -292,6 +292,8 @@ struct Model void UpdateAnimation(Uint32 index, float time); + void PrepareGPUResources(IDeviceContext* pCtx); + private: void LoadFromFile(IRenderDevice* pDevice, IDeviceContext* pContext, @@ -322,6 +324,8 @@ private: void GetSceneDimensions(); Node* FindNode(Node* parent, Uint32 index); Node* NodeFromIndex(uint32_t index); + + bool TexturesTransitioned = false; }; } // namespace GLTF -- cgit v1.2.3