Fixed maxVertex value
Following specification: maxVertex is the highest index of a vertex that will be addressed by a build command using this structure.
This commit is contained in:
parent
12e17c280e
commit
ef1c1e25d6
20 changed files with 21 additions and 21 deletions
|
|
@ -604,7 +604,7 @@ triangles.indexType = VK_INDEX_TYPE_UINT32;
|
|||
triangles.indexData.deviceAddress = indexAddress;
|
||||
// Indicate identity transform by setting transformData to null device pointer.
|
||||
//triangles.transformData = {};
|
||||
triangles.maxVertex = uint32_t(vertices.size());
|
||||
triangles.maxVertex = uint32_t(vertices.size()) - 1;
|
||||
|
||||
// Identify the above data as containing opaque triangles.
|
||||
VkAccelerationStructureGeometryKHR asGeom{VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_KHR};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue