C Specification
To store user defined data in a slot associated with a Vulkan object, call:
// Provided by VK_VERSION_1_3
VkResult vkSetPrivateData(
VkDevice device,
VkObjectType objectType,
uint64_t objectHandle,
VkPrivateDataSlot privateDataSlot,
uint64_t data);
or the equivalent command
// Provided by VK_EXT_private_data
VkResult vkSetPrivateDataEXT(
VkDevice device,
VkObjectType objectType,
uint64_t objectHandle,
VkPrivateDataSlot privateDataSlot,
uint64_t data);
Parameters
-
deviceis the device that created the object. -
objectTypeis a VkObjectType specifying the type of object to associate data with. -
objectHandleis a handle to the object to associate data with. -
privateDataSlotis a handle to a VkPrivateDataSlot specifying location of private data storage. -
datais user defined data to associate the object with. This data will be stored atprivateDataSlot.
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.