namespace Brutal.VulkanApi { /// /// VkMicromapBuildSizesInfoEXT - Structure specifying build sizes for a micromap /// /// /// /// :refpage: VkMicromapBuildSizesInfoEXT /// /// /// The VkMicromapBuildSizesInfoEXT structure describes the required build /// sizes for a micromap and scratch buffers and is defined as: /// /// /// // Provided by VK_EXT_opacity_micromap /// typedef struct VkMicromapBuildSizesInfoEXT { /// VkStructureType sType; /// const void* pNext; /// VkDeviceSize micromapSize; /// VkDeviceSize buildScratchSize; /// VkBool32 discardable; /// } VkMicromapBuildSizesInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 40)] public unsafe partial struct VkMicromapBuildSizesInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.MicromapBuildSizesInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// MicromapSize is the size in bytes required in a VkMicromapEXT for a build or update operation. /// [FieldOffset(16)] public ByteSize64 MicromapSize; /// /// BuildScratchSize is the size in bytes required in a scratch buffer for a build operation. /// [FieldOffset(24)] public ByteSize64 BuildScratchSize; /// /// Discardable indicates whether or not the micromap object may be destroyed after an acceleration structure build or update. A false value means that acceleration structures built with this micromap may: contain references to the data contained therein, and the application must not destroy the micromap until ray traversal has concluded. A true value means that the information in the micromap will be copied by value into the acceleration structure, and the micromap can be destroyed after the acceleration structure build concludes. /// [FieldOffset(32)] public Brutal.Bool32 Discardable; } }