From 90d8af888b40c83b33f9f0c037bd2ab8c19a35f4 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 7 Dec 2021 13:45:49 -0800 Subject: gfx: D3D12 and VK Fence implementation. (#2048) * gfx: D3D12 and VK Fence implementation. * Fix. * Update project files. * Revert project file changes. * Remove project files Co-authored-by: Yong He --- tools/render-test/render-test-main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/render-test/render-test-main.cpp') diff --git a/tools/render-test/render-test-main.cpp b/tools/render-test/render-test-main.cpp index 96d0e4047..78fa149e8 100644 --- a/tools/render-test/render-test-main.cpp +++ b/tools/render-test/render-test-main.cpp @@ -751,7 +751,7 @@ void RenderTestApp::_initializeAccelerationStructure() encoder->endEncoding(); commandBuffer->close(); m_queue->executeCommandBuffer(commandBuffer); - m_queue->wait(); + m_queue->waitOnHost(); uint64_t compactedSize = 0; compactedSizeQuery->getResult(0, 1, &compactedSize); @@ -774,7 +774,7 @@ void RenderTestApp::_initializeAccelerationStructure() encoder->endEncoding(); commandBuffer->close(); m_queue->executeCommandBuffer(commandBuffer); - m_queue->wait(); + m_queue->waitOnHost(); } // Build top level acceleration structure. @@ -840,7 +840,7 @@ void RenderTestApp::_initializeAccelerationStructure() encoder->endEncoding(); commandBuffer->close(); m_queue->executeCommandBuffer(commandBuffer); - m_queue->wait(); + m_queue->waitOnHost(); } } @@ -883,7 +883,7 @@ void RenderTestApp::finalize() Result RenderTestApp::writeBindingOutput(const String& fileName) { // Wait until everything is complete - m_queue->wait(); + m_queue->waitOnHost(); FILE * f = fopen(fileName.getBuffer(), "wb"); if (!f) @@ -993,7 +993,7 @@ Result RenderTestApp::update() m_startTicks = Process::getClockTick(); m_queue->executeCommandBuffer(commandBuffer); - m_queue->wait(); + m_queue->waitOnHost(); // If we are in a mode where output is requested, we need to snapshot the back buffer here if (m_options.outputPath.getLength() || m_options.performanceProfile) -- cgit v1.2.3