2016-07-10 18:13:41 -07:00
|
|
|
// Copyright (c) 2014-2016 Khronos Group. This work is licensed under a
|
|
|
|
// Creative Commons Attribution 4.0 International License; see
|
|
|
|
// http://creativecommons.org/licenses/by/4.0/
|
|
|
|
|
2016-02-16 01:53:44 -08:00
|
|
|
vkAllocateDescriptorSets(3)
|
|
|
|
===========================
|
|
|
|
|
|
|
|
Name
|
|
|
|
----
|
|
|
|
vkAllocateDescriptorSets - Allocate one or more descriptor sets.
|
|
|
|
|
|
|
|
C Specification
|
|
|
|
---------------
|
|
|
|
|
2016-07-10 18:13:41 -07:00
|
|
|
// refBegin vkAllocateDescriptorSets Allocate one or more descriptor sets.
|
|
|
|
|
|
|
|
To allocate descriptor sets from a descriptor pool, call:
|
|
|
|
|
2016-02-16 01:53:44 -08:00
|
|
|
include::../protos/vkAllocateDescriptorSets.txt[]
|
|
|
|
|
2016-07-10 18:13:41 -07:00
|
|
|
|
2016-02-16 01:53:44 -08:00
|
|
|
Parameters
|
|
|
|
----------
|
|
|
|
|
2016-07-10 18:13:41 -07:00
|
|
|
* pname:device is the logical device that owns the descriptor pool.
|
|
|
|
* pname:pAllocateInfo is a pointer to an instance of the
|
|
|
|
slink:VkDescriptorSetAllocateInfo structure describing parameters of the
|
|
|
|
allocation.
|
|
|
|
* pname:pDescriptorSets is a pointer to an array of sname:VkDescriptorSet
|
|
|
|
handles in which the resulting descriptor set objects are returned. The
|
|
|
|
array must: be at least the length specified by the
|
|
|
|
pname:descriptorSetCount member of pname:pAllocateInfo.
|
2016-02-16 01:53:44 -08:00
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
2016-07-10 18:13:41 -07:00
|
|
|
The allocated descriptor sets are returned in pname:pDescriptorSets.
|
2016-02-16 01:53:44 -08:00
|
|
|
|
2016-07-10 18:13:41 -07:00
|
|
|
When a descriptor set is allocated, the initial state is largely
|
|
|
|
uninitialized and all descriptors are undefined. However,
|
|
|
|
the descriptor set can: be bound
|
|
|
|
in a command buffer without causing errors or exceptions. All entries that
|
|
|
|
are statically used by a pipeline in a drawing or dispatching command must:
|
|
|
|
have been populated before the descriptor set is bound for use by that command.
|
|
|
|
Entries that are not statically used by a pipeline can: have uninitialized
|
|
|
|
descriptors or descriptors of resources that have been destroyed, and executing
|
|
|
|
a draw or dispatch with such a descriptor set bound does not cause undefined
|
|
|
|
behavior. This means applications need not populate unused entries with dummy
|
|
|
|
descriptors.
|
2016-02-16 01:53:44 -08:00
|
|
|
|
|
|
|
include::../validity/protos/vkAllocateDescriptorSets.txt[]
|
|
|
|
|
2016-07-10 18:13:41 -07:00
|
|
|
|
2016-02-16 01:53:44 -08:00
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
2016-07-10 18:13:41 -07:00
|
|
|
slink:VkDescriptorSet, slink:VkDescriptorSetAllocateInfo, slink:VkDevice
|
|
|
|
|
|
|
|
|
|
|
|
Document Notes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
For more information, see the Vulkan Specification at URL
|
|
|
|
|
|
|
|
https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#vkAllocateDescriptorSets
|
|
|
|
|
|
|
|
This page is extracted from the Vulkan Specification.
|
|
|
|
Fixes and changes should be made to the Specification,not directly.
|
2016-02-16 01:53:44 -08:00
|
|
|
|
|
|
|
include::footer.txt[]
|
2016-07-10 18:13:41 -07:00
|
|
|
|