VKDESCRIPTORSETALLOC(3)

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

C SPECIFICATION

The VkDescriptorSetAllocateInfo structure is defined as:

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

MEMBERS

    • sType is the type of this structure.

    • pNext is NULL or a pointer to an extension-specific structure.

    • descriptorPool is the pool which the sets will be allocated from.

    • descriptorSetCount determines the number of descriptor sets to be allocated from the pool.

    • pSetLayouts is an array of descriptor set layouts, with each member specifying how the corresponding descriptor set is allocated.

DESCRIPTION

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

    • Both 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

VkDescriptorPool, VkDescriptorSetLayout, VkStructureType, vkAllocateDescriptorSets

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#VkDescriptorSetAllocateInfo

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification,not directly.

COPYRIGHT

Copyright (c) 2014-2016 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.

AUTHOR

Khronos Group
    Author.