summaryrefslogtreecommitdiffstats
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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/ray-tracing-pipeline/main.cpp b/examples/ray-tracing-pipeline/main.cpp
index e927b9d10..c2bb4b9d7 100644
--- a/examples/ray-tracing-pipeline/main.cpp
+++ b/examples/ray-tracing-pipeline/main.cpp
@@ -325,6 +325,7 @@ Slang::Result initialize()
IResourceView::Desc primitiveSRVDesc = {};
primitiveSRVDesc.format = Format::Unknown;
primitiveSRVDesc.type = IResourceView::Type::ShaderResource;
+ primitiveSRVDesc.bufferElementSize = sizeof(Primitive);
gPrimitiveBufferSRV = gDevice->createBufferView(gPrimitiveBuffer, primitiveSRVDesc);
IBufferResource::Desc transformBufferDesc;