namespace Brutal.VulkanApi { /// /// VkAttachmentDescription2 - Structure specifying an attachment description /// /// /// /// :refpage: VkAttachmentDescription2 /// /// /// The VkAttachmentDescription2 structure is defined as: /// /// /// // Provided by VK_VERSION_1_2 /// typedef struct VkAttachmentDescription2 { /// VkStructureType sType; /// const void* pNext; /// VkAttachmentDescriptionFlags flags; /// VkFormat format; /// VkSampleCountFlagBits samples; /// VkAttachmentLoadOp loadOp; /// VkAttachmentStoreOp storeOp; /// VkAttachmentLoadOp stencilLoadOp; /// VkAttachmentStoreOp stencilStoreOp; /// VkImageLayout initialLayout; /// VkImageLayout finalLayout; /// } VkAttachmentDescription2; /// /// [StructLayout(LayoutKind.Explicit, Size = 56)] public unsafe partial struct VkAttachmentDescription2() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.AttachmentDescription2; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is a bitmask of VkAttachmentDescriptionFlags specifying additional properties of the attachment. /// [FieldOffset(16)] public VkAttachmentDescriptionFlags Flags; /// /// Format is a VkFormat value specifying the format of the image that will be used for the attachment. /// [FieldOffset(20)] public VkFormat Format; /// /// Samples is a VkSampleCountFlags value specifying the number of samples of the image. /// [FieldOffset(24)] public VkSampleCountFlags Samples; /// /// LoadOp is a VkAttachmentLoadOp value specifying how the contents of color and depth components of the attachment are treated at the beginning of the subpass where it is first used. /// [FieldOffset(28)] public VkAttachmentLoadOp LoadOp; /// /// StoreOp is a VkAttachmentStoreOp value specifying how the contents of color and depth components of the attachment are treated at the end of the subpass where it is last used. /// [FieldOffset(32)] public VkAttachmentStoreOp StoreOp; /// /// StencilLoadOp is a VkAttachmentLoadOp value specifying how the contents of stencil components of the attachment are treated at the beginning of the subpass where it is first used. /// [FieldOffset(36)] public VkAttachmentLoadOp StencilLoadOp; /// /// StencilStoreOp is a VkAttachmentStoreOp value specifying how the contents of stencil components of the attachment are treated at the end of the last subpass where it is used. /// [FieldOffset(40)] public VkAttachmentStoreOp StencilStoreOp; /// /// InitialLayout is the layout the attachment image subresource will be in when a render pass instance begins. /// [FieldOffset(44)] public VkImageLayout InitialLayout; /// /// FinalLayout is the layout the attachment image subresource will be transitioned to when a render pass instance ends. /// [FieldOffset(48)] public VkImageLayout FinalLayout; } }