Class VkPipelineVertexInputStateCreateInfo

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


    public class VkPipelineVertexInputStateCreateInfo
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Contains vertex input attribute and vertex input binding descriptions as part of graphics pipeline creation.

    Valid Usage
    • sType must be STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO
    • pNext must be NULL
    • flags must be 0
    • If vertexBindingDescriptionCount is not 0, pVertexBindingDescriptions must be a pointer to an array of vertexBindingDescriptionCount valid VkVertexInputBindingDescription structures
    • If vertexAttributeDescriptionCount is not 0, pVertexAttributeDescriptions must be a pointer to an array of vertexAttributeDescriptionCount valid VkVertexInputAttributeDescription structures
    • vertexBindingDescriptionCount must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputBindings
    • vertexAttributeDescriptionCount must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputAttributes
    • For every binding specified by any given element of pVertexAttributeDescriptions, a VkVertexInputBindingDescription must exist in pVertexBindingDescriptions with the same value of binding
    • All elements of pVertexBindingDescriptions must describe distinct binding numbers
    • All elements of pVertexAttributeDescriptions must describe distinct attribute locations

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO
    • pNext – reserved for use by extensions
    • flags – reserved for future use
    • vertexBindingDescriptionCount – the number of vertex binding descriptions provided in pVertexBindingDescriptions
    • pVertexBindingDescriptions – a pointer to an array of VkVertexInputBindingDescription structures
    • vertexAttributeDescriptionCount – the number of vertex attribute descriptions provided in pVertexAttributeDescriptions
    • pVertexAttributeDescriptions – a pointer to an array of VkVertexInputAttributeDescription structures

    Layout

    struct VkPipelineVertexInputStateCreateInfo {
        VkStructureType sType;
        const void * pNext;
        VkPipelineVertexInputStateCreateFlags flags;
        uint32_t vertexBindingDescriptionCount;
        const VkVertexInputBindingDescription * pVertexBindingDescriptions;
        uint32_t vertexAttributeDescriptionCount;
        const VkVertexInputAttributeDescription * pVertexAttributeDescriptions;
    }