Class VkFreeFunction

  • All Implemented Interfaces:
    java.lang.AutoCloseable, CallbackI, CallbackI.V, NativeResource, Pointer, VkFreeFunctionI

    public abstract class VkFreeFunction
    extends Callback
    implements VkFreeFunctionI
    Application-defined memory free function.
    C Specification

    The type of pfnFree is:

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

    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


    • Method Detail

      • create

        public static VkFreeFunction create​(long functionPointer)
        Creates a VkFreeFunction instance from the specified function pointer.
        the new VkFreeFunction
      • createSafe

        public static VkFreeFunction createSafe​(long functionPointer)
        Like create, but returns null if functionPointer is NULL.
      • create

        public static VkFreeFunction create​(VkFreeFunctionI instance)
        Creates a VkFreeFunction instance that delegates to the specified VkFreeFunctionI instance.