namespace Brutal.VulkanApi { /// /// VkImageMemoryBarrier - Structure specifying the parameters of an image memory barrier /// /// /// /// :refpage: VkImageMemoryBarrier /// /// /// The VkImageMemoryBarrier structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkImageMemoryBarrier { /// VkStructureType sType; /// const void* pNext; /// VkAccessFlags srcAccessMask; /// VkAccessFlags dstAccessMask; /// VkImageLayout oldLayout; /// VkImageLayout newLayout; /// uint32_t srcQueueFamilyIndex; /// uint32_t dstQueueFamilyIndex; /// VkImage image; /// VkImageSubresourceRange subresourceRange; /// } VkImageMemoryBarrier; /// /// [StructLayout(LayoutKind.Explicit, Size = 72)] public unsafe partial struct VkImageMemoryBarrier() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImageMemoryBarrier; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// SrcAccessMask is a bitmask of VkAccessFlags specifying a source access mask^. /// [FieldOffset(16)] public VkAccessFlags SrcAccessMask; /// /// DstAccessMask is a bitmask of VkAccessFlags specifying a destination access mask^. /// [FieldOffset(20)] public VkAccessFlags DstAccessMask; /// /// OldLayout is the old layout in an image layout transition^. /// [FieldOffset(24)] public VkImageLayout OldLayout; /// /// NewLayout is the new layout in an image layout transition^. /// [FieldOffset(28)] public VkImageLayout NewLayout; /// /// SrcQueueFamilyIndex is the source queue family for a queue family ownership transfer^. /// [FieldOffset(32)] public int SrcQueueFamilyIndex; /// /// DstQueueFamilyIndex is the destination queue family for a queue family ownership transfer^. /// [FieldOffset(36)] public int DstQueueFamilyIndex; /// /// Image is a handle to the image affected by this barrier. /// [FieldOffset(40)] public VkImage Image; /// /// SubresourceRange describes the image subresource range^ within image that is affected by this barrier. /// [FieldOffset(48)] public VkImageSubresourceRange SubresourceRange; } }