C Specification
Chaining LSS primitives can be achieved by specifying an index buffer in
VkAccelerationStructureGeometryLinearSweptSpheresDataNV::indexData
and setting
VkAccelerationStructureGeometryLinearSweptSpheresDataNV::indexingMode
to one of VkRayTracingLssIndexingModeNV
values:
// Provided by VK_NV_ray_tracing_linear_swept_spheres
typedef enum VkRayTracingLssIndexingModeNV {
VK_RAY_TRACING_LSS_INDEXING_MODE_LIST_NV = 0,
VK_RAY_TRACING_LSS_INDEXING_MODE_SUCCESSIVE_NV = 1,
} VkRayTracingLssIndexingModeNV;
Description
-
VK_RAY_TRACING_LSS_INDEXING_MODE_LIST_NV
specifies that a list of indices is provided where each consecutive pair of indices define a LSS primitive. -
VK_RAY_TRACING_LSS_INDEXING_MODE_SUCCESSIVE_NV
specifies a successive implicit indexing format, in which each LSS primitive is defined by two successive positions and radii, (k, k + 1), where k is a single index provided in the index buffer. In this indexing scheme, there is a 1:1 mapping between the index buffer and primitive index within the geometry.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.