namespace Brutal.VulkanApi { /// /// VkMicromapBuildInfoEXT - Structure specifying the data used to build a micromap /// /// /// /// :refpage: VkMicromapBuildInfoEXT /// /// /// The VkMicromapBuildInfoEXT structure is defined as: /// /// /// // Provided by VK_EXT_opacity_micromap /// typedef struct VkMicromapBuildInfoEXT { /// VkStructureType sType; /// const void* pNext; /// VkMicromapTypeEXT type; /// VkBuildMicromapFlagsEXT flags; /// VkBuildMicromapModeEXT mode; /// VkMicromapEXT dstMicromap; /// uint32_t usageCountsCount; /// const VkMicromapUsageEXT* pUsageCounts; /// const VkMicromapUsageEXT* const* ppUsageCounts; /// VkDeviceOrHostAddressConstKHR data; /// VkDeviceOrHostAddressKHR scratchData; /// VkDeviceOrHostAddressConstKHR triangleArray; /// VkDeviceSize triangleArrayStride; /// } VkMicromapBuildInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 96)] public unsafe partial struct VkMicromapBuildInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.MicromapBuildInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Type is a VkMicromapTypeEXT value specifying the type of micromap being built. /// [FieldOffset(16)] public VkMicromapTypeEXT Type; /// /// Flags is a bitmask of VkBuildMicromapFlagsEXT specifying additional parameters of the micromap. /// [FieldOffset(20)] public VkBuildMicromapFlagsEXT Flags; /// /// Mode is a VkBuildMicromapModeEXT value specifying the type of operation to perform. /// [FieldOffset(24)] public VkBuildMicromapModeEXT Mode; /// /// DstMicromap is a pointer to the target micromap for the build. /// [FieldOffset(32)] public VkMicromapEXT DstMicromap; /// /// UsageCountsCount specifies the number of usage counts structures that will be used to determine the size of this micromap. /// [FieldOffset(40)] public int UsageCountsCount; /// /// UsageCounts is a pointer to an array of VkMicromapUsageEXT structures. /// [FieldOffset(48)] public VkMicromapUsageEXT* UsageCounts; /// /// ppUsageCounts is a pointer to an array of pointers to VkMicromapUsageEXT structures. /// [FieldOffset(56)] public VkMicromapUsageEXT** ppUsageCounts; /// /// Data is the device or host address of memory which contains the data for the micromap. /// [FieldOffset(64)] public VkDeviceOrHostAddressConstKHR Data; /// /// ScratchData is the device or host address of memory that will be used as scratch memory for the build. /// [FieldOffset(72)] public VkDeviceOrHostAddressKHR ScratchData; /// /// TriangleArray is the device or host address of memory containing the VkMicromapTriangleEXT data /// [FieldOffset(80)] public VkDeviceOrHostAddressConstKHR TriangleArray; /// /// TriangleArrayStride is the stride in bytes between each element of triangleArray /// [FieldOffset(88)] public ByteSize64 TriangleArrayStride; } }