From e6976c0e65df43b58ce9bd641ea51cdcf6fb2129 Mon Sep 17 00:00:00 2001 From: mklefrancois <38076163+mklefrancois@users.noreply.github.com> Date: Sat, 30 May 2020 12:53:34 +0200 Subject: [PATCH] Moving updateBlas to animationObject --- ray_tracing_animation/hello_vulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ray_tracing_animation/hello_vulkan.cpp b/ray_tracing_animation/hello_vulkan.cpp index 5511dc6..88896d0 100644 --- a/ray_tracing_animation/hello_vulkan.cpp +++ b/ray_tracing_animation/hello_vulkan.cpp @@ -963,7 +963,6 @@ void HelloVulkan::animationInstances(float time) m_alloc.destroy(stagingBuffer); m_rtBuilder.updateTlasMatrices(m_tlas); - m_rtBuilder.updateBlas(2); } void HelloVulkan::animationObject(float time) @@ -982,6 +981,7 @@ void HelloVulkan::animationObject(float time) &time); cmdBuf.dispatch(model.nbVertices, 1, 1); genCmdBuf.submitAndWait(cmdBuf); + m_rtBuilder.updateBlas(2); } //////////////////////////////////////////////////////////////////////////