Function Prototype
vkSetPrivateData
Associate data with a Vulkan object
To store application-defined data in a slot associated with a Vulkan object, call:
VkResult vkSetPrivateDataEXT(
VkDevice device,
VkObjectType objectType,
uint64_t objectHandle,
VkPrivateDataSlot privateDataSlot,
uint64_t data);
device
is the device that created the object.objectType
is a VkObjectType specifying the type of object to associate data with.objectHandle
is a handle to the object to associate data with.privateDataSlot
is a handle to a VkPrivateDataSlot specifying location of private data storage.data
is application-defined data to associate the object with. This data will be stored atprivateDataSlot
.
Valid Usage
VUID-vkSetPrivateData-objectHandle-04016
objectHandle
must be device
or a child of device
VUID-vkSetPrivateData-objectHandle-04017
objectHandle
must be a valid handle to an object of type
objectType
Valid Usage (Implicit)
VUID-vkSetPrivateData-device-parameter
device
must be a valid VkDevice handle
VUID-vkSetPrivateData-objectType-parameter
objectType
must be a valid VkObjectType value
VUID-vkSetPrivateData-privateDataSlot-parameter
privateDataSlot
must be a valid VkPrivateDataSlot handle
VUID-vkSetPrivateData-privateDataSlot-parent
privateDataSlot
must have been created, allocated, or retrieved from device