namespace Brutal.VulkanApi { /// /// VkAccelerationStructureGeometryMicromapDataKHR - Structure specifying the data used to build a micromap /// /// /// /// :refpage: VkAccelerationStructureGeometryMicromapDataKHR /// /// /// When building micromaps with vkCmdBuildAccelerationStructuresKHR, a /// VkAccelerationStructureGeometryMicromapDataKHR structure can be added /// to the pNext chain of VkAccelerationStructureGeometryKHR to /// specify the data used to build the micromap. /// /// /// The VkAccelerationStructureGeometryMicromapDataKHR structure is /// defined as: /// /// /// // Provided by VK_KHR_opacity_micromap /// typedef struct VkAccelerationStructureGeometryMicromapDataKHR { /// VkStructureType sType; /// const void* pNext; /// uint32_t usageCountsCount; /// const VkMicromapUsageKHR* pUsageCounts; /// const VkMicromapUsageKHR* const* ppUsageCounts; /// VkDeviceAddress data; /// VkDeviceAddress triangleArray; /// VkDeviceSize triangleArrayStride; /// } VkAccelerationStructureGeometryMicromapDataKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 64)] public unsafe partial struct VkAccelerationStructureGeometryMicromapDataKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.AccelerationStructureGeometryMicromapDataKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// UsageCountsCount specifies the number of usage counts structures that will be used to determine the size of this micromap. /// [FieldOffset(16)] public int UsageCountsCount; /// /// UsageCounts is a pointer to an array of VkMicromapUsageKHR structures. /// [FieldOffset(24)] public VkMicromapUsageKHR* UsageCounts; /// /// ppUsageCounts is a pointer to an array of pointers to VkMicromapUsageKHR structures. /// [FieldOffset(32)] public VkMicromapUsageKHR** ppUsageCounts; /// /// Data is the device address to memory which contains the data for the micromap. /// [FieldOffset(40)] public VkDeviceAddress Data; /// /// TriangleArray is the device address to memory containing the VkMicromapTriangleKHR data /// [FieldOffset(48)] public VkDeviceAddress TriangleArray; /// /// TriangleArrayStride is the stride in bytes between each element of triangleArray /// [FieldOffset(56)] public ByteSize64 TriangleArrayStride; } }