Class VkRenderPassCreateInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class VkRenderPassCreateInfo
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Contains information about how a render pass should be created.

    Valid Usage
    • sType must be STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO
    • pNext must be NULL
    • flags must be 0
    • If attachmentCount is not 0, pAttachments must be a pointer to an array of attachmentCount valid VkAttachmentDescription structures
    • pSubpasses must be a pointer to an array of subpassCount valid VkSubpassDescription structures
    • If dependencyCount is not 0, pDependencies must be a pointer to an array of dependencyCount valid VkSubpassDependency structures
    • subpassCount must be greater than 0
    • If any two subpasses operate on attachments with overlapping ranges of the same VkDeviceMemory object, and at least one subpass writes to that area of VkDeviceMemory, a subpass dependency must be included (either directly or via some intermediate subpasses) between them
    • If the attachment member of any element of pInputAttachments, pColorAttachments, pResolveAttachments or pDepthStencilAttachment, or the attachment indexed by any element of pPreserveAttachments in any given element of pSubpasses is bound to a range of a VkDeviceMemory object that overlaps with any other attachment in any subpass (including the same subpass), the VkAttachmentDescription structures describing them must include ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT in flags
    • If the attachment member of any element of pInputAttachments, pColorAttachments, pResolveAttachments or pDepthStencilAttachment, or any element of pPreserveAttachments in any given element of pSubpasses is not ATTACHMENT_UNUSED, it must be less than attachmentCount
    • The value of any element of the pPreserveAttachments member in any given element of pSubpasses must not be ATTACHMENT_UNUSED

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO
    • pNext – reserved for use by extensions
    • flags – reserved for future use
    • attachmentCount – the number of attachments used by this render pass, or zero indicating no attachments
    • pAttachments – points to an array of attachmentCount number of VkAttachmentDescription structures describing properties of the attachments, or NULL if attachmentCount is zero
    • subpassCount – the number of subpasses to create for this render pass
    • pSubpasses – points to an array of subpassCount number of VkSubpassDescription structures describing properties of the subpasses
    • dependencyCount – the number of dependencies between pairs of subpasses, or zero indicating no dependencies
    • pDependencies – points to an array of dependencyCount number of VkSubpassDependency structures describing dependencies between pairs of subpasses, or NULL if dependencyCount is zero

    Layout

    struct VkRenderPassCreateInfo {
        VkStructureType sType;
        const void * pNext;
        VkRenderPassCreateFlags flags;
        uint32_t attachmentCount;
        const VkAttachmentDescription * pAttachments;
        uint32_t subpassCount;
        const VkSubpassDescription * pSubpasses;
        uint32_t dependencyCount;
        const VkSubpassDependency * pDependencies;
    }