VkAllocationCallbacks | NVK Search
  1. No Results
Categories
VkAllocationCallbacks Structure containing callback function references for memory allocation Syntax
allocationCallbacks = new VkAllocationCallbacks();
allocationCallbacks = new VkAllocationCallbacks(object);
Stub Parameters object When instantiated with an object, members can be filled directly. Properties VkAllocationCallbacks.prototype.pUserData ArrayBuffer is a value to be interpreted by the implementation of the callbacks. When any of the callbacks in VkAllocationCallbacks are called, the Vulkan implementation will pass this value as the first parameter to the callback. This value can vary each time an allocator is passed into a command, even when the same object takes an allocator in multiple commands. VkAllocationCallbacks.prototype.pfnAllocation Function is a reference to an application-defined memory allocation function of type PFN_vkAllocationFunction. VkAllocationCallbacks.prototype.pfnReallocation Function is a reference to an application-defined memory reallocation function of type PFN_vkReallocationFunction. VkAllocationCallbacks.prototype.pfnFree Function is a reference to an application-defined memory free function of type PFN_vkFreeFunction. VkAllocationCallbacks.prototype.pfnInternalAllocation Function is a reference to an application-defined function that is called by the implementation when the implementation makes internal allocations, and it is of type PFN_vkInternalAllocationNotification. VkAllocationCallbacks.prototype.pfnInternalFree Function is a reference to an application-defined function that is called by the implementation when the implementation frees internal allocations, and it is of type PFN_vkInternalFreeNotification. Default Properties VkAllocationCallbacks.prototype.memoryBuffer ArrayBuffer Native memory reference of the structure. VkAllocationCallbacks.memoryLayout Object Object describing this structure's memory layout. VkAllocationCallbacks.byteLength Number Total native byte length of this structure.