Function Prototype

vkCreatePrivateDataSlot

Create a slot for private data storage

To create a private data slot, call:

VkResult vkCreatePrivateDataSlotEXT(
    VkDevice device,
    const VkPrivateDataSlotCreateInfo* pCreateInfo,
    const VkAllocationCallbacks* pAllocator,
    VkPrivateDataSlot* pPrivateDataSlot);
  • device is the logical device associated with the creation of the object(s) holding the private data slot.
  • pCreateInfo is a pointer to a VkPrivateDataSlotCreateInfo
  • 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

Valid Usage

Valid Usage (Implicit)

VUID-vkCreatePrivateDataSlot-pCreateInfo-parameter

pCreateInfo must be a valid pointer to a valid VkPrivateDataSlotCreateInfo structure

VUID-vkCreatePrivateDataSlot-pAllocator-parameter

If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure

VUID-vkCreatePrivateDataSlot-pPrivateDataSlot-parameter

pPrivateDataSlot must be a valid pointer to a VkPrivateDataSlot handle