PFN_VKFREEFUNCTION(3)

NAME
PFN_vkFreeFunction - application-defined memory free function

C SPECIFICATION

The type of pfnFree is:

    typedef void (VKAPI_PTR *PFN_vkFreeFunction)(
        void*                                       pUserData,
        void*                                       pMemory);

PARAMETERS

    • pUserData is the value specified for VkAllocationCallbacks.pUserData in the allocator specified by the application.

    • pMemory is the allocation to be freed.

DESCRIPTION

pMemory may be NULL, which the callback must handle safely. If pMemory is non-NULL, it must be a pointer previously allocated by pfnAllocation or pfnReallocation. The application should free this memory.

SEE ALSO

VkAllocationCallbacks

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#PFN_vkFreeFunction

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification,not directly.

COPYRIGHT

Copyright (c) 2014-2016 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.

AUTHOR

Khronos Group
    Author.