Skip to content

Commit

Permalink
Revert max vertex count
Browse files Browse the repository at this point in the history
  • Loading branch information
Duttenheim committed Jan 21, 2025
1 parent 813e14f commit 48d4fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/render/coregraphics/vk/vkaccelerationstructure.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ CreateBlas(const BlasCreateInfo& info)
.vertexFormat = positionsFormat,
.vertexData = VkDeviceOrHostAddressConstKHR {.deviceAddress = vboAddr + info.vertexOffset},
.vertexStride = (uint64)info.stride,
.maxVertex = (uint)info.primitiveGroups[i].GetNumPrimitives(CoreGraphics::PrimitiveTopology::TriangleList) * 3 - 1,
.maxVertex = info.indexType == IndexType::Index16 ? 0xFFFE : 0xFFFFFFFE,
.indexType = info.indexType == IndexType::Index16 ? VK_INDEX_TYPE_UINT16 : VK_INDEX_TYPE_UINT32,
.indexData = VkDeviceOrHostAddressConstKHR {.deviceAddress = iboAddr + info.indexOffset},
.transformData = VkDeviceOrHostAddressConstKHR{ .hostAddress = nullptr } // TODO: Support transforms
Expand Down

0 comments on commit 48d4fda

Please sign in to comment.