namespace Brutal.VulkanApi { /// /// VkAccelerationStructureGeometrySpheresDataNV - Structure specifying a sphere geometry in a bottom-level acceleration structure /// /// /// /// :refpage: VkAccelerationStructureGeometrySpheresDataNV /// /// /// 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; /// /// [StructLayout(LayoutKind.Explicit, Size = 88)] public unsafe partial struct VkAccelerationStructureGeometrySpheresDataNV() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.AccelerationStructureGeometrySpheresDataNV; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// VertexFormat is the VkFormat of each sphere's vertex element. /// [FieldOffset(16)] public VkFormat VertexFormat; /// /// VertexData is a device or host address of memory containing vertex data in form of pairs of centers of spheres that define all sphere geometry. /// [FieldOffset(24)] public VkDeviceOrHostAddressConstKHR VertexData; /// /// VertexStride is the stride in bytes between each vertex element. /// [FieldOffset(32)] public ByteSize64 VertexStride; /// /// RadiusFormat is the VkFormat of each sphere's radius. /// [FieldOffset(40)] public VkFormat RadiusFormat; /// /// RadiusData is a device or host address of memory containing sphere's radius data value. /// [FieldOffset(48)] public VkDeviceOrHostAddressConstKHR RadiusData; /// /// RadiusStride is the stride in bytes between each radius value. /// [FieldOffset(56)] public ByteSize64 RadiusStride; /// /// IndexType is the VkIndexType of each index element. /// [FieldOffset(64)] public VkIndexType IndexType; /// /// IndexData is a device or host address of memory containing index data for vertex and radius buffers for this geometry. When indexType is VK_INDEX_TYPE_NONE_KHR it must be `NULL`. /// [FieldOffset(72)] public VkDeviceOrHostAddressConstKHR IndexData; /// /// IndexStride is the stride in bytes between each index element. /// [FieldOffset(80)] public ByteSize64 IndexStride; } }