namespace Brutal.VulkanApi { /// /// VkAttachmentDescription - Structure specifying an attachment description /// /// /// /// :refpage: VkAttachmentDescription /// /// /// The VkAttachmentDescription structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkAttachmentDescription { /// VkAttachmentDescriptionFlags flags; /// VkFormat format; /// VkSampleCountFlagBits samples; /// VkAttachmentLoadOp loadOp; /// VkAttachmentStoreOp storeOp; /// VkAttachmentLoadOp stencilLoadOp; /// VkAttachmentStoreOp stencilStoreOp; /// VkImageLayout initialLayout; /// VkImageLayout finalLayout; /// } VkAttachmentDescription; /// /// [StructLayout(LayoutKind.Explicit, Size = 36)] public partial struct VkAttachmentDescription() { /// /// Flags is a bitmask of VkAttachmentDescriptionFlags specifying additional properties of the attachment. /// [FieldOffset(0)] public VkAttachmentDescriptionFlags Flags; /// /// Format is a VkFormat value specifying the format of the image view that will be used for the attachment. /// [FieldOffset(4)] public VkFormat Format; /// /// Samples is a VkSampleCountFlags value specifying the number of samples of the image. /// [FieldOffset(8)] 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(12)] 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(16)] 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(20)] 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(24)] public VkAttachmentStoreOp StencilStoreOp; /// /// InitialLayout is the layout the attachment image subresource will be in when a render pass instance begins. /// [FieldOffset(28)] public VkImageLayout InitialLayout; /// /// FinalLayout is the layout the attachment image subresource will be transitioned to when a render pass instance ends. /// [FieldOffset(32)] public VkImageLayout FinalLayout; } }