namespace Brutal.VulkanApi { /// /// VkImageMemoryBarrier2 - Structure specifying an image memory barrier /// /// /// /// :refpage: VkImageMemoryBarrier2 /// /// /// The VkImageMemoryBarrier2 structure is defined as: /// /// /// // Provided by VK_VERSION_1_3 /// typedef struct VkImageMemoryBarrier2 { /// VkStructureType sType; /// const void* pNext; /// VkPipelineStageFlags2 srcStageMask; /// VkAccessFlags2 srcAccessMask; /// VkPipelineStageFlags2 dstStageMask; /// VkAccessFlags2 dstAccessMask; /// VkImageLayout oldLayout; /// VkImageLayout newLayout; /// uint32_t srcQueueFamilyIndex; /// uint32_t dstQueueFamilyIndex; /// VkImage image; /// VkImageSubresourceRange subresourceRange; /// } VkImageMemoryBarrier2; /// /// [StructLayout(LayoutKind.Explicit, Size = 96)] public unsafe partial struct VkImageMemoryBarrier2() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImageMemoryBarrier2; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// SrcStageMask is a VkPipelineStageFlags2 mask of pipeline stages to be included in the first synchronization scope^. /// [FieldOffset(16)] public VkPipelineStageFlags2 SrcStageMask; /// /// SrcAccessMask is a VkAccessFlags2 mask of access flags to be included in the first access scope^. /// [FieldOffset(24)] public VkAccessFlags2 SrcAccessMask; /// /// DstStageMask is a VkPipelineStageFlags2 mask of pipeline stages to be included in the second synchronization scope^. /// [FieldOffset(32)] public VkPipelineStageFlags2 DstStageMask; /// /// DstAccessMask is a VkAccessFlags2 mask of access flags to be included in the second access scope^. /// [FieldOffset(40)] public VkAccessFlags2 DstAccessMask; /// /// OldLayout is the old layout in an image layout transition^. /// [FieldOffset(48)] public VkImageLayout OldLayout; /// /// NewLayout is the new layout in an image layout transition^. /// [FieldOffset(52)] public VkImageLayout NewLayout; /// /// SrcQueueFamilyIndex is the source queue family for a queue family ownership transfer^. /// [FieldOffset(56)] public int SrcQueueFamilyIndex; /// /// DstQueueFamilyIndex is the destination queue family for a queue family ownership transfer^. /// [FieldOffset(60)] public int DstQueueFamilyIndex; /// /// Image is a handle to the image affected by this barrier. /// [FieldOffset(64)] public VkImage Image; /// /// SubresourceRange describes the image subresource range^ within image that is affected by this barrier. /// [FieldOffset(72)] public VkImageSubresourceRange SubresourceRange; } }