diff --git a/docs/vkrt_tuto_animation.md.htm b/docs/vkrt_tuto_animation.md.htm index a2291e0..1ac5e8a 100644 --- a/docs/vkrt_tuto_animation.md.htm +++ b/docs/vkrt_tuto_animation.md.htm @@ -76,12 +76,15 @@ Next, we update the buffer that describes the scene, which is used by the raster memcpy(gInst, m_objInstance.data(), bufferSize); m_alloc.unmap(stagingBuffer); // Copy staging buffer to the Scene Description buffer - nvvkpp::SingleCommandBuffer genCmdBuf(m_device, m_graphicsQueueIndex); - vk::CommandBuffer cmdBuf = genCmdBuf.createCommandBuffer(); + nvvk::CommandPool genCmdBuf(m_device, m_graphicsQueueIndex); + vk::CommandBuffer cmdBuf = genCmdBuf.createCommandBuffer(); cmdBuf.copyBuffer(stagingBuffer.buffer, m_sceneDesc.buffer, vk::BufferCopy(0, 0, bufferSize)); m_debug.endLabel(cmdBuf); - genCmdBuf.flushCommandBuffer(cmdBuf); + genCmdBuf.submitAndWait(cmdBuf); m_alloc.destroy(stagingBuffer); + + m_rtBuilder.updateTlasMatrices(m_tlas); + m_rtBuilder.updateBlas(2); } ~~~~