VkAccelerationStructureGeometryLinearSweptSpheresDataNV - Structure specifying a LSS geometry in a bottom-level acceleration structure
Description
If an index buffer is not specified in indexData, LSS primitives are
rendered individually using subsequent pairs of vertices similar to
PRIMITIVE_TOPOLOGY_LINE_LIST.
Valid Usage
The linearSweptSpheres feature must be enabled
vertexStridemust be a multiple of:the size of the format specified in
vertexFormatif that format is a packed formatthe component size specified in
vertexFormatif that format is not a packed format
vertexStrideandradiusStridemust be less than or equal to 232-1The format features of
vertexFormatmust contain FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHRThe format features of
radiusFormatmust contain FORMAT_FEATURE_2_ACCELERATION_STRUCTURE_RADIUS_BUFFER_BIT_NVAll values referenced in
radiusDatamust be greater than or equal to0If
indexingModeis RAY_TRACING_LSS_INDEXING_MODE_SUCCESSIVE_NV,indexDatamust not beNULLindexTypemust be INDEX_TYPE_UINT16, INDEX_TYPE_UINT32, or INDEX_TYPE_NONE_KHR
Valid Usage (Implicit)
vertexFormatmust be a valid Format valuevertexDatamust be a valid DeviceOrHostAddressConstKHR unionradiusFormatmust be a valid Format valueradiusDatamust be a valid DeviceOrHostAddressConstKHR unionindexTypemust be a valid IndexType valueindexDatamust be a valid DeviceOrHostAddressConstKHR unionindexingModemust be a valid RayTracingLssIndexingModeNV valueendCapsModemust be a valid RayTracingLssPrimitiveEndCapsModeNV value
Structure Chaining
See Also
VK_NV_ray_tracing_linear_swept_spheres, DeviceOrHostAddressConstKHR, DeviceSize, Format, IndexType, RayTracingLssIndexingModeNV, RayTracingLssPrimitiveEndCapsModeNV, StructureType
Constructors
AccelerationStructureGeometryLinearSweptSpheresDataNVvertexFormat :: FormatvertexFormatis the Format of each LSS vertex element.vertexData :: DeviceOrHostAddressConstKHRvertexDatais a device or host address of memory containing vertex data for this geometry.vertexStride :: DeviceSizevertexStrideis the stride in bytes between each vertex element.radiusFormat :: FormatradiusFormatis the Format of each LSS radius.radiusData :: DeviceOrHostAddressConstKHRradiusDatais a device or host address of memory containing LSS radius data value.radiusStride :: DeviceSizeradiusStrideis the stride in bytes between each radius value.indexType :: IndexTypeindexTypeis the IndexType of each index element.indexData :: DeviceOrHostAddressConstKHRindexDatais a device or host address of memory containing index data for vertex and radius buffers for this geometry. WhenindexTypeis INDEX_TYPE_NONE_KHR it must beNULL.indexStride :: DeviceSizeindexStrideis the stride in bytes between each index element.indexingMode :: RayTracingLssIndexingModeNVindexingModeis a RayTracingLssIndexingModeNV value specifying the mode of indexing.endCapsMode :: RayTracingLssPrimitiveEndCapsModeNVendCapsModeis a RayTracingLssPrimitiveEndCapsModeNV value specifying the endcaps mode for LSS primitives.
Instances3Show, ToCStruct, Zero
Show AccelerationStructureGeometryLinearSweptSpheresDataNVDefined in vulkan-3.27 · Vulkan.Extensions.VK_NV_ray_tracing_linear_swept_spheresToCStruct AccelerationStructureGeometryLinearSweptSpheresDataNVDefined in vulkan-3.27 · Vulkan.Extensions.VK_NV_ray_tracing_linear_swept_spheresZero AccelerationStructureGeometryLinearSweptSpheresDataNVDefined in vulkan-3.27 · Vulkan.Extensions.VK_NV_ray_tracing_linear_swept_spheres