namespace Brutal.VulkanApi { /// /// VkAccelerationStructureGeometryTrianglesDataKHR - Structure specifying a triangle geometry in a bottom-level acceleration structure /// /// /// /// :refpage: VkAccelerationStructureGeometryTrianglesDataKHR /// /// /// The VkAccelerationStructureGeometryTrianglesDataKHR structure is /// defined as: /// /// /// // Provided by VK_KHR_acceleration_structure /// typedef struct VkAccelerationStructureGeometryTrianglesDataKHR { /// VkStructureType sType; /// const void* pNext; /// VkFormat vertexFormat; /// VkDeviceOrHostAddressConstKHR vertexData; /// VkDeviceSize vertexStride; /// uint32_t maxVertex; /// VkIndexType indexType; /// VkDeviceOrHostAddressConstKHR indexData; /// VkDeviceOrHostAddressConstKHR transformData; /// } VkAccelerationStructureGeometryTrianglesDataKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 64)] public unsafe partial struct VkAccelerationStructureGeometryTrianglesDataKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.AccelerationStructureGeometryTrianglesDataKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// VertexFormat is the VkFormat of each vertex element. /// [FieldOffset(16)] public VkFormat VertexFormat; /// /// VertexData is a device or host address of memory containing vertex data for this geometry. /// [FieldOffset(24)] public VkDeviceOrHostAddressConstKHR VertexData; /// /// VertexStride is the stride in bytes between each vertex. /// [FieldOffset(32)] public ByteSize64 VertexStride; /// /// MaxVertex is the number of vertices in vertexData minus one. /// [FieldOffset(40)] public int MaxVertex; /// /// IndexType is the VkIndexType of each index element. /// [FieldOffset(44)] public VkIndexType IndexType; /// /// IndexData is a device or host address of memory containing index data for this geometry. When indexType is VK_INDEX_TYPE_NONE_KHR it must be `NULL`. /// [FieldOffset(48)] public VkDeviceOrHostAddressConstKHR IndexData; /// /// TransformData is a device or host address to memory containing an optional reference to a VkTransformMatrixKHR structure describing a transformation from the space in which the vertices in this geometry are described to the space in which the acceleration structure is defined. /// [FieldOffset(56)] public VkDeviceOrHostAddressConstKHR TransformData; } }