namespace Brutal.VulkanApi { /// /// VkAttachmentReference2 - Structure specifying an attachment reference /// /// /// /// :refpage: VkAttachmentReference2 /// /// /// The VkAttachmentReference2 structure is defined as: /// /// /// // Provided by VK_VERSION_1_2 /// typedef struct VkAttachmentReference2 { /// VkStructureType sType; /// const void* pNext; /// uint32_t attachment; /// VkImageLayout layout; /// VkImageAspectFlags aspectMask; /// } VkAttachmentReference2; /// /// [StructLayout(LayoutKind.Explicit, Size = 32)] public unsafe partial struct VkAttachmentReference2() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.AttachmentReference2; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Attachment is either an integer value identifying an attachment at the corresponding index in VkRenderPassCreateInfo2::pAttachments, or VK_ATTACHMENT_UNUSED to signify that this attachment is not used. /// [FieldOffset(16)] public int Attachment; /// /// Layout is a VkImageLayout value specifying the layout the attachment uses during the subpass. /// [FieldOffset(20)] public VkImageLayout Layout; /// /// AspectMask is a mask of which aspect(s) can be accessed within the specified subpass as an input attachment. /// [FieldOffset(24)] public VkImageAspectFlags AspectMask; } }