summaryrefslogtreecommitdiffstats
path: root/examples/ray-tracing/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ray-tracing/main.cpp')
-rw-r--r--examples/ray-tracing/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/ray-tracing/main.cpp b/examples/ray-tracing/main.cpp
index bc4e9ad0a..9d6a638d4 100644
--- a/examples/ray-tracing/main.cpp
+++ b/examples/ray-tracing/main.cpp
@@ -382,6 +382,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 = {};