Function Prototype
vkCreatePrivateDataSlot
Create a slot for private data storage
To create a private data slot, call:
VkResult vkCreatePrivateDataSlot(
VkDevice device,
const VkPrivateDataSlotCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkPrivateDataSlot* pPrivateDataSlot);
pub fn create_private_data_slot(
device: vk::Device,
p_create_info: *const vk::PrivateDataSlotCreateInfo,
p_allocator: *const vk::AllocationCallbacks,
p_private_data_slot: *mut vk::PrivateDataSlot,
) -> vk::Result;
VkResult vkCreatePrivateDataSlotEXT(
VkDevice device,
const VkPrivateDataSlotCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkPrivateDataSlot* pPrivateDataSlot);
pub fn create_private_data_slot_ext(
device: vk::Device,
p_create_info: *const vk::PrivateDataSlotCreateInfo,
p_allocator: *const vk::AllocationCallbacks,
p_private_data_slot: *mut vk::PrivateDataSlot,
) -> vk::Result;
deviceis the logical device associated with the creation of the object(s) holding the private data slot.pCreateInfois a pointer to a VkPrivateDataSlotCreateInfopAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.pPrivateDataSlotis a pointer to a VkPrivateDataSlot handle in which the resulting private data slot is returned
Valid Usage
VUID-vkCreatePrivateDataSlot-privateData-04564
The privateData feature must be enabled
Valid Usage (Implicit)
VUID-vkCreatePrivateDataSlot-device-parameter
device must be a valid VkDevice handle
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
VUID-vkCreatePrivateDataSlot-device-queuecount
The device must have been created with at least 1 queue
Parent
VK_VERSION_1_3Type
Function Prototype