Interface VkFreeFunctionI

  • All Superinterfaces:
    CallbackI, CallbackI.V, Pointer
    All Known Implementing Classes:
    VkFreeFunction


    @FunctionalInterface
    public interface VkFreeFunctionI
    extends CallbackI.V
    Instances of this interface may be set to the pfnFree member of the VkAllocationCallbacks struct.

    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 and must be freed by the function.

    • Method Detail

      • address

        default long address()
        Description copied from interface: Pointer
        Returns the raw pointer address as a long value.
        Specified by:
        address in interface Pointer
        Returns:
        the pointer address
      • callback

        default void callback(long args)
        Description copied from interface: CallbackI.V
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.V
        Parameters:
        args - pointer to a DCArgs iterator
      • invoke

        void invoke(long pUserData,
                    long pMemory)
        Will be called by the Vulkan implementation to free memory.
        Parameters:
        pUserData - the value specified for VkAllocationCallbacks.pUserData in the allocator specified by the application
        pMemory - the allocation to be freed