Interface VkAllocationFunctionI

    • 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 long callback(long args)
        Description copied from interface: CallbackI.P
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.P
        Parameters:
        args - pointer to a DCArgs iterator
        Returns:
        the value to store to the result DCValue
      • invoke

        long invoke(long pUserData,
                    long size,
                    long alignment,
                    int allocationScope)
        Will be called by the Vulkan implementation to allocate memory.
        Parameters:
        pUserData - the value specified for VkAllocationCallbacks.pUserData in the allocator specified by the application
        size - the size in bytes of the requested allocation
        alignment - the requested alignment of the allocation in bytes and must be a power of two
        allocationScope - a VkSystemAllocationScope value specifying the scope of the lifetime of the allocation
        Returns:
        must either return NULL (in case of allocation failure or if size is zero) or a valid pointer to a memory allocation containing at least size bytes, and with the pointer value being a multiple of alignment.