summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example-base/example-base.cpp2
-rw-r--r--examples/example-base/example-base.h2
-rw-r--r--examples/ray-tracing-pipeline/main.cpp6
-rw-r--r--examples/ray-tracing/main.cpp6
-rw-r--r--examples/shader-object/main.cpp2
5 files changed, 9 insertions, 9 deletions
diff --git a/examples/example-base/example-base.cpp b/examples/example-base/example-base.cpp
index a7a8e7673..2a50c12db 100644
--- a/examples/example-base/example-base.cpp
+++ b/examples/example-base/example-base.cpp
@@ -155,7 +155,7 @@ void WindowedAppBase::createSwapchainFramebuffers()
void WindowedAppBase::windowSizeChanged()
{
// Wait for the GPU to finish.
- gQueue->wait();
+ gQueue->waitOnHost();
auto clientRect = gWindow->getClientRect();
if (clientRect.width > 0 && clientRect.height > 0)
diff --git a/examples/example-base/example-base.h b/examples/example-base/example-base.h
index b898f7417..49c992ca3 100644
--- a/examples/example-base/example-base.h
+++ b/examples/example-base/example-base.h
@@ -40,7 +40,7 @@ protected:
virtual void renderFrame(int framebufferIndex) = 0;
public:
platform::Window* getWindow() { return gWindow.Ptr(); }
- virtual void finalize() { gQueue->wait(); }
+ virtual void finalize() { gQueue->waitOnHost(); }
};
int64_t getCurrentTime();
diff --git a/examples/ray-tracing-pipeline/main.cpp b/examples/ray-tracing-pipeline/main.cpp
index 17ca046db..f83025b52 100644
--- a/examples/ray-tracing-pipeline/main.cpp
+++ b/examples/ray-tracing-pipeline/main.cpp
@@ -405,7 +405,7 @@ Slang::Result initialize()
encoder->endEncoding();
commandBuffer->close();
gQueue->executeCommandBuffer(commandBuffer);
- gQueue->wait();
+ gQueue->waitOnHost();
uint64_t compactedSize = 0;
compactedSizeQuery->getResult(0, 1, &compactedSize);
@@ -427,7 +427,7 @@ Slang::Result initialize()
encoder->endEncoding();
commandBuffer->close();
gQueue->executeCommandBuffer(commandBuffer);
- gQueue->wait();
+ gQueue->waitOnHost();
}
// Build top level acceleration structure.
@@ -491,7 +491,7 @@ Slang::Result initialize()
encoder->endEncoding();
commandBuffer->close();
gQueue->executeCommandBuffer(commandBuffer);
- gQueue->wait();
+ gQueue->waitOnHost();
}
IBufferResource::Desc fullScreenVertexBufferDesc;
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;
diff --git a/examples/shader-object/main.cpp b/examples/shader-object/main.cpp
index 5ab327df7..14835f0c8 100644
--- a/examples/shader-object/main.cpp
+++ b/examples/shader-object/main.cpp
@@ -235,7 +235,7 @@ int main()
encoder->endEncoding();
commandBuffer->close();
queue->executeCommandBuffer(commandBuffer);
- queue->wait();
+ queue->waitOnHost();
}
// Read back the results.
ComPtr<ISlangBlob> resultBlob;