Class VkDescriptorSetAllocateInfo

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


    public class VkDescriptorSetAllocateInfo
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Contains information about how a descriptor set should be allocated.

    Valid Usage
    • sType must be STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO
    • pNext must be NULL
    • descriptorPool must be a valid VkDescriptorPool handle
    • pSetLayouts must be a pointer to an array of descriptorSetCount valid VkDescriptorSetLayout handles
    • descriptorSetCount must be greater than 0
    • Each of descriptorPool and the elements of pSetLayouts must have been created, allocated or retrieved from the same VkDevice
    • descriptorSetCount must not be greater than the number of sets that are currently available for allocation in descriptorPool
    • descriptorPool must have enough free descriptor capacity remaining to allocate the descriptor sets of the specified layouts

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO
    • pNext – reserved for use by extensions
    • descriptorPool – the pool which the sets will be allocated from
    • descriptorSetCount – the number of descriptor sets to be allocated from the pool
    • pSetLayouts – an array of descriptor set layouts, with each member specifying how the corresponding descriptor set is allocated

    Layout

    struct VkDescriptorSetAllocateInfo {
        VkStructureType sType;
        const void * pNext;
        VkDescriptorPool descriptorPool;
        uint32_t descriptorSetCount;
        const VkDescriptorSetLayout * pSetLayouts;
    }