You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VUID-VkAccelerationStructureBuildRangeInfoKHR-primitiveOffset-03657
For geometries of type VK_GEOMETRY_TYPE_TRIANGLES_KHR, if the geometry does not use indices, the offset primitiveOffset from VkAccelerationStructureGeometryTrianglesDataKHR::vertexData must be a multiple of the component size of VkAccelerationStructureGeometryTrianglesDataKHR::vertexFormat
The 'component size' seems like an odd choice since there are formats with different sizes of components, but it seems wrong when you consider that VkAccelerationStructureGeometryTrianglesDataKHR::vertexData uses a stride when being read from. So shouldn't constraint VUID-VkAccelerationStructureBuildRangeInfoKHR-primitiveOffset-03657 specify that the primitiveOffset be in multiples of VkAccelerationStructureGeometryTrianglesDataKHR::vertexStride?
The text was updated successfully, but these errors were encountered:
We agree the component size alignment requirement is a bit odd, at least for packed- or sub-32-bit components, however it does largely make sense for 32-bit or larger components.
However we also don't think that multiple of vertexStride is the correct thing either.
We've created an internal issue to further discuss and attempt to clarify: https://gitlab.khronos.org/vulkan/vulkan/-/issues/4058
In the spec it states:
The 'component size' seems like an odd choice since there are formats with different sizes of components, but it seems wrong when you consider that
VkAccelerationStructureGeometryTrianglesDataKHR::vertexData
uses a stride when being read from. So shouldn't constraintVUID-VkAccelerationStructureBuildRangeInfoKHR-primitiveOffset-03657
specify that theprimitiveOffset
be in multiples ofVkAccelerationStructureGeometryTrianglesDataKHR::vertexStride
?The text was updated successfully, but these errors were encountered: