VkAllocationCallbacks | NVK Search
  1. No Results
Categories
VkAllocationCallbacks Structure containing callback function references for memory allocation Syntax
allocationCallbacks = VkAllocationCallbacks();
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 PFN_vkAllocationFunction reference to an application-defined memory allocation function. VkAllocationCallbacks.prototype.pfnReallocation Function is a PFN_vkReallocationFunction reference to an application-defined memory reallocation function. VkAllocationCallbacks.prototype.pfnFree Function is a PFN_vkFreeFunction reference to an application-defined memory free function. VkAllocationCallbacks.prototype.pfnInternalAllocation Function is a PFN_vkInternalAllocationNotification reference to an application-defined function that is called by the implementation when the implementation makes internal allocations. VkAllocationCallbacks.prototype.pfnInternalFree Function is a PFN_vkInternalFreeNotification reference to an application-defined function that is called by the implementation when the implementation frees internal allocations. Default Properties VkAllocationCallbacks.prototype.memoryBuffer ArrayBuffer Native memory reference of the structure. VkAllocationCallbacks.memoryLayout Object Object describing the structure's memory layout. VkAllocationCallbacks.byteLength Number Total native byte length of the structure. Internal Properties These properties are mainly used by nvk internally. VkAllocationCallbacks.reset Resets the native memory of the structure. VkAllocationCallbacks.flush Writes the structure's data into the native memory. VkAllocationCallbacks.reflect Synchronizes the structure's data with the native memory.