namespace Brutal.VulkanApi { /// /// VkAccelerationStructureTrianglesOpacityMicromapEXT - Structure specifying an opacity micromap in a bottom-level acceleration structure /// /// /// /// :refpage: VkAccelerationStructureTrianglesOpacityMicromapEXT /// /// /// The VkAccelerationStructureTrianglesOpacityMicromapEXT structure is /// defined as: /// /// /// // Provided by VK_EXT_opacity_micromap /// typedef struct VkAccelerationStructureTrianglesOpacityMicromapEXT { /// VkStructureType sType; /// void* pNext; /// VkIndexType indexType; /// VkDeviceOrHostAddressConstKHR indexBuffer; /// VkDeviceSize indexStride; /// uint32_t baseTriangle; /// uint32_t usageCountsCount; /// const VkMicromapUsageEXT* pUsageCounts; /// const VkMicromapUsageEXT* const* ppUsageCounts; /// VkMicromapEXT micromap; /// } VkAccelerationStructureTrianglesOpacityMicromapEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 72)] public unsafe partial struct VkAccelerationStructureTrianglesOpacityMicromapEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.AccelerationStructureTrianglesOpacityMicromapEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// IndexType is the type of triangle indices used when indexing this micromap. /// [FieldOffset(16)] public VkIndexType IndexType; /// /// IndexBuffer is a device or host address of memory containing the triangle indices. When indexType is VK_INDEX_TYPE_NONE_KHR it must be `NULL`. /// [FieldOffset(24)] public VkDeviceOrHostAddressConstKHR IndexBuffer; /// /// IndexStride is the byte stride between triangle indices. /// [FieldOffset(32)] public ByteSize64 IndexStride; /// /// BaseTriangle is the base value added to the non-negative triangle indices. /// [FieldOffset(40)] public int BaseTriangle; /// /// UsageCountsCount specifies the number of usage counts structures that will be used to determine the size of this micromap. /// [FieldOffset(44)] 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; /// /// Micromap is the handle to the micromap object to include in this geometry. /// [FieldOffset(64)] public VkMicromapEXT Micromap; } }