namespace Brutal.VulkanApi { /// /// VkGeometryTrianglesNV - Structure specifying a triangle geometry in a bottom-level acceleration structure /// /// /// /// :refpage: VkGeometryTrianglesNV /// /// /// The VkGeometryTrianglesNV structure specifies triangle geometry in a /// bottom-level acceleration structure and is defined as: /// /// /// // Provided by VK_NV_ray_tracing /// typedef struct VkGeometryTrianglesNV { /// VkStructureType sType; /// const void* pNext; /// VkBuffer vertexData; /// VkDeviceSize vertexOffset; /// uint32_t vertexCount; /// VkDeviceSize vertexStride; /// VkFormat vertexFormat; /// VkBuffer indexData; /// VkDeviceSize indexOffset; /// uint32_t indexCount; /// VkIndexType indexType; /// VkBuffer transformData; /// VkDeviceSize transformOffset; /// } VkGeometryTrianglesNV; /// /// [StructLayout(LayoutKind.Explicit, Size = 96)] public unsafe partial struct VkGeometryTrianglesNV() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.GeometryTrianglesNV; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// VertexData is the buffer containing vertex data for this geometry. /// [FieldOffset(16)] public VkBuffer VertexData; /// /// VertexOffset is the offset in bytes within vertexData containing vertex data for this geometry. /// [FieldOffset(24)] public ByteSize64 VertexOffset; /// /// VertexCount is the number of valid vertices. /// [FieldOffset(32)] public int VertexCount; /// /// VertexStride is the stride in bytes between each vertex. /// [FieldOffset(40)] public ByteSize64 VertexStride; /// /// VertexFormat is a VkFormat describing the format of each vertex element. /// [FieldOffset(48)] public VkFormat VertexFormat; /// /// IndexData is the buffer containing index data for this geometry. /// [FieldOffset(56)] public VkBuffer IndexData; /// /// IndexOffset is the offset in bytes within indexData containing index data for this geometry. /// [FieldOffset(64)] public ByteSize64 IndexOffset; /// /// IndexCount is the number of indices to include in this geometry. /// [FieldOffset(72)] public int IndexCount; /// /// IndexType is a VkIndexType describing the format of each index. /// [FieldOffset(76)] public VkIndexType IndexType; /// /// TransformData is an optional buffer containing an VkTransformMatrixNV structure defining a transformation to be applied to this geometry. /// [FieldOffset(80)] public VkBuffer TransformData; /// /// TransformOffset is the offset in bytes in transformData of the transform information described above. /// [FieldOffset(88)] public ByteSize64 TransformOffset; } }