C Specification
To create a private data slot, call:
// Provided by VK_VERSION_1_3
VkResult vkCreatePrivateDataSlot(
VkDevice device,
const VkPrivateDataSlotCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkPrivateDataSlot* pPrivateDataSlot);
or the equivalent command
// Provided by VK_EXT_private_data
VkResult vkCreatePrivateDataSlotEXT(
VkDevice device,
const VkPrivateDataSlotCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkPrivateDataSlot* pPrivateDataSlot);
Parameters
-
device
is the logical device associated with the creation of the object(s) holding the private data slot. -
pCreateInfo
is a pointer to aVkPrivateDataSlotCreateInfo
-
pAllocator
controls host memory allocation as described in the Memory Allocation chapter. -
pPrivateDataSlot
is a pointer to a VkPrivateDataSlot handle in which the resulting private data slot is returned
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.