Skip to content

Commit 39475b2

Browse files
author
kevyuu
committed
Fix example 67 for non indexed geometry
1 parent b4807ad commit 39475b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

67_RayQueryGeometry/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ class RayQueryGeometryApp final : public SimpleWindowedApplication, public Built
856856
auto& geomInfo = geomInfos[i];
857857
geomInfo = {
858858
.vertexBufferAddress = vertexBufferAddress,
859-
.indexBufferAddress = indexBufferBinding.buffer ? indexBufferBinding.buffer->getDeviceAddress() + indexBufferBinding.offset : vertexBufferAddress,
859+
.indexBufferAddress = indexBufferBinding.buffer ? indexBufferBinding.buffer->getDeviceAddress() + indexBufferBinding.offset : 0,
860860
.normalBufferAddress = normalBufferAddress,
861861
.normalType = normalType,
862862
.indexType = gpuTriangles.indexType,

0 commit comments

Comments
 (0)