diff options
| author | Yong He <yonghe@outlook.com> | 2021-12-07 13:45:49 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-07 13:45:49 -0800 |
| commit | 90d8af888b40c83b33f9f0c037bd2ab8c19a35f4 (patch) | |
| tree | 21ada472ea0d768352f46da7db64f9dc449d1209 /tools/render-test/render-test-main.cpp | |
| parent | 646eecc6af878ea7682c814c15b4e838c3231ee3 (diff) | |
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 <yhe@nvidia.com>
Diffstat (limited to 'tools/render-test/render-test-main.cpp')
| -rw-r--r-- | tools/render-test/render-test-main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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) |
