summaryrefslogtreecommitdiff
path: root/examples/ray-tracing-pipeline/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ray-tracing-pipeline/main.cpp')
-rw-r--r--examples/ray-tracing-pipeline/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/ray-tracing-pipeline/main.cpp b/examples/ray-tracing-pipeline/main.cpp
index c2bb4b9d7..a4e6333e9 100644
--- a/examples/ray-tracing-pipeline/main.cpp
+++ b/examples/ray-tracing-pipeline/main.cpp
@@ -390,6 +390,8 @@ Slang::Result initialize()
SLANG_RETURN_ON_FAIL(
gDevice->createAccelerationStructure(draftCreateDesc, draftAS.writeRef()));
+ compactedSizeQuery->reset();
+
auto commandBuffer = gTransientHeaps[0]->createCommandBuffer();
auto encoder = commandBuffer->encodeRayTracingCommands();
IAccelerationStructure::BuildDesc buildDesc = {};