namespace Brutal.VulkanApi { /// /// VkSubpassDescription2 - Structure specifying a subpass description /// /// /// /// :refpage: VkSubpassDescription2 /// /// /// The VkSubpassDescription2 structure is defined as: /// /// /// // Provided by VK_VERSION_1_2 /// typedef struct VkSubpassDescription2 { /// VkStructureType sType; /// const void* pNext; /// VkSubpassDescriptionFlags flags; /// VkPipelineBindPoint pipelineBindPoint; /// uint32_t viewMask; /// uint32_t inputAttachmentCount; /// const VkAttachmentReference2* pInputAttachments; /// uint32_t colorAttachmentCount; /// const VkAttachmentReference2* pColorAttachments; /// const VkAttachmentReference2* pResolveAttachments; /// const VkAttachmentReference2* pDepthStencilAttachment; /// uint32_t preserveAttachmentCount; /// const uint32_t* pPreserveAttachments; /// } VkSubpassDescription2; /// /// [StructLayout(LayoutKind.Explicit, Size = 88)] public unsafe partial struct VkSubpassDescription2() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.SubpassDescription2; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is a bitmask of VkSubpassDescriptionFlags specifying usage of the subpass. /// [FieldOffset(16)] public VkSubpassDescriptionFlags Flags; /// /// PipelineBindPoint is a VkPipelineBindPoint value specifying the pipeline type supported for this subpass. /// [FieldOffset(20)] public VkPipelineBindPoint PipelineBindPoint; /// /// ViewMask is a bitfield of view indices describing which views rendering is broadcast to in this subpass, when multiview is enabled. /// [FieldOffset(24)] public int ViewMask; /// /// InputAttachmentCount is the number of input attachments. /// [FieldOffset(28)] public int InputAttachmentCount; /// /// InputAttachments is a pointer to an array of VkAttachmentReference2 structures defining the input attachments for this subpass and their layouts. /// [FieldOffset(32)] public VkAttachmentReference2* InputAttachments; /// /// ColorAttachmentCount is the number of color attachments. /// [FieldOffset(40)] public int ColorAttachmentCount; /// /// ColorAttachments is a pointer to an array of colorAttachmentCount VkAttachmentReference2 structures defining the color attachments for this subpass and their layouts. /// [FieldOffset(48)] public VkAttachmentReference2* ColorAttachments; /// /// ResolveAttachments is `NULL` or a pointer to an array of colorAttachmentCount VkAttachmentReference2 structures defining the resolve attachments for this subpass and their layouts. /// [FieldOffset(56)] public VkAttachmentReference2* ResolveAttachments; /// /// DepthStencilAttachment is a pointer to a VkAttachmentReference2 structure specifying the depth/stencil attachment for this subpass and its layout. /// [FieldOffset(64)] public VkAttachmentReference2* DepthStencilAttachment; /// /// PreserveAttachmentCount is the number of preserved attachments. /// [FieldOffset(72)] public int PreserveAttachmentCount; /// /// PreserveAttachments is a pointer to an array of preserveAttachmentCount render pass attachment indices identifying attachments that are not used by this subpass, but whose contents must be preserved throughout the subpass. /// [FieldOffset(80)] public int* PreserveAttachments; } }