C Specification
If VkAccelerationStructureGeometrySpheresDataNV
is included in the
pNext
chain of a VkAccelerationStructureGeometryKHR structure,
then that structures defines the sphere’s geometry data.
The VkAccelerationStructureGeometrySpheresDataNV
structure is defined
as:
// Provided by VK_NV_ray_tracing_linear_swept_spheres
typedef struct VkAccelerationStructureGeometrySpheresDataNV {
VkStructureType sType;
const void* pNext;
VkFormat vertexFormat;
VkDeviceOrHostAddressConstKHR vertexData;
VkDeviceSize vertexStride;
VkFormat radiusFormat;
VkDeviceOrHostAddressConstKHR radiusData;
VkDeviceSize radiusStride;
VkIndexType indexType;
VkDeviceOrHostAddressConstKHR indexData;
VkDeviceSize indexStride;
} VkAccelerationStructureGeometrySpheresDataNV;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
vertexFormat
is the VkFormat of each sphere’s vertex element. -
vertexData
is a device or host address to memory containing vertex data in form of pairs of centers of spheres that define all sphere geometry. -
vertexStride
is the stride in bytes between each vertex element. -
radiusFormat
is the VkFormat of each sphere’s radius. -
radiusData
is a device or host address to memory containing sphere’s radius data value. -
radiusStride
is the stride in bytes between each radius value. -
indexType
is the VkIndexType of each index element. -
indexData
isNULL
or a device or host address to memory containing index data for vertex and radius buffers for this geometry. -
indexStride
is the stride in bytes between each index element.
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.