summaryrefslogtreecommitdiffstats
path: root/AssetLoader/interface
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-11-05 02:34:19 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-11-05 02:34:19 +0000
commit59cded2211435bb4e2a0648f9efe9624b3ad4cb4 (patch)
tree06b286fc478a1c8344ff94e8c9d967319ba27605 /AssetLoader/interface
parentGLTFLoader: made texture cache thread-safe (diff)
downloadDiligentTools-59cded2211435bb4e2a0648f9efe9624b3ad4cb4.tar.gz
DiligentTools-59cded2211435bb4e2a0648f9efe9624b3ad4cb4.zip
GLTFLoader: enabled creating the GLTF models without device context
Diffstat (limited to 'AssetLoader/interface')
-rw-r--r--AssetLoader/interface/GLTFLoader.hpp4
1 files changed, 4 insertions, 0 deletions
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