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 /examples/ray-tracing | |
| 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 'examples/ray-tracing')
| -rw-r--r-- | examples/ray-tracing/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ray-tracing/main.cpp b/examples/ray-tracing/main.cpp index e51a601a2..2d947e567 100644 --- a/examples/ray-tracing/main.cpp +++ b/examples/ray-tracing/main.cpp @@ -397,7 +397,7 @@ Slang::Result initialize() encoder->endEncoding(); commandBuffer->close(); gQueue->executeCommandBuffer(commandBuffer); - gQueue->wait(); + gQueue->waitOnHost(); uint64_t compactedSize = 0; compactedSizeQuery->getResult(0, 1, &compactedSize); @@ -419,7 +419,7 @@ Slang::Result initialize() encoder->endEncoding(); commandBuffer->close(); gQueue->executeCommandBuffer(commandBuffer); - gQueue->wait(); + gQueue->waitOnHost(); } // Build top level acceleration structure. @@ -483,7 +483,7 @@ Slang::Result initialize() encoder->endEncoding(); commandBuffer->close(); gQueue->executeCommandBuffer(commandBuffer); - gQueue->wait(); + gQueue->waitOnHost(); } IBufferResource::Desc fullScreenVertexBufferDesc; |
