VKDESCRIPTORSETALLOC(3)

NAME
VkDescriptorSetAllocateInfo - Structure specifying the allocation parameters for descriptor sets.

C SPECIFICATION

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

FIELDS

sType
    Structure type. Must be VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO.

pNext
    Pointer to next structure in the structure chain when applicable.

descriptorPool
    The pool from which to allocate the descriptor sets.

descriptorSetCount
    The number of descriptor sets to allocate.

pSetLayouts
    An array of descriptorSetCount handles to descriptor set layouts objects describing the descriptor sets.

DESCRIPTION

This structure is used to specify the parameters of descriptor set objects allocated using vkAllocateDescriptorSets.

VALID USAGE

    • sType must be VK_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

SEE ALSO

vkAllocateDescriptorSets

COPYRIGHT

Copyright © 2014-2016 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

AUTHOR

Khronos Group
    Author.