namespace Brutal.VulkanApi { /// /// VkSubpassDescription - Structure specifying a subpass description /// /// /// /// :refpage: VkSubpassDescription /// /// /// The VkSubpassDescription structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkSubpassDescription { /// VkSubpassDescriptionFlags flags; /// VkPipelineBindPoint pipelineBindPoint; /// uint32_t inputAttachmentCount; /// const VkAttachmentReference* pInputAttachments; /// uint32_t colorAttachmentCount; /// const VkAttachmentReference* pColorAttachments; /// const VkAttachmentReference* pResolveAttachments; /// const VkAttachmentReference* pDepthStencilAttachment; /// uint32_t preserveAttachmentCount; /// const uint32_t* pPreserveAttachments; /// } VkSubpassDescription; /// /// [StructLayout(LayoutKind.Explicit, Size = 72)] public unsafe partial struct VkSubpassDescription() { /// /// Flags is a bitmask of VkSubpassDescriptionFlags specifying usage of the subpass. /// [FieldOffset(0)] public VkSubpassDescriptionFlags Flags; /// /// PipelineBindPoint is a VkPipelineBindPoint value specifying the pipeline type supported for this subpass. /// [FieldOffset(4)] public VkPipelineBindPoint PipelineBindPoint; /// /// InputAttachmentCount is the number of input attachments. /// [FieldOffset(8)] public int InputAttachmentCount; /// /// InputAttachments is a pointer to an array of VkAttachmentReference structures defining the input attachments for this subpass and their layouts. /// [FieldOffset(16)] public VkAttachmentReference* InputAttachments; /// /// ColorAttachmentCount is the number of color attachments. /// [FieldOffset(24)] public int ColorAttachmentCount; /// /// ColorAttachments is a pointer to an array of colorAttachmentCount VkAttachmentReference structures defining the color attachments for this subpass and their layouts. /// [FieldOffset(32)] public VkAttachmentReference* ColorAttachments; /// /// ResolveAttachments is `NULL` or a pointer to an array of colorAttachmentCount VkAttachmentReference structures defining the resolve attachments for this subpass and their layouts. /// [FieldOffset(40)] public VkAttachmentReference* ResolveAttachments; /// /// DepthStencilAttachment is a pointer to a VkAttachmentReference structure specifying the depth/stencil attachment for this subpass and its layout. /// [FieldOffset(48)] public VkAttachmentReference* DepthStencilAttachment; /// /// PreserveAttachmentCount is the number of preserved attachments. /// [FieldOffset(56)] 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(64)] public int* PreserveAttachments; } }