org.lwjgl.util.vma.VmaFreeDeviceMemoryFunctionI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vma Show documentation
Show all versions of lwjgl-vma Show documentation
An easy to integrate Vulkan memory allocation library.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.util.vma;
import org.lwjgl.system.*;
import static org.lwjgl.system.dyncall.DynCallback.*;
/**
* Instances of this interface may be set to the {@link VmaDeviceMemoryCallbacks} struct.
*
* Type
*
*
* void (*) (
* VmaAllocator allocator,
* uint32_t memoryType,
* VkDeviceMemory memory,
* VkDeviceSize size
* )
*/
@FunctionalInterface
@NativeType("PFN_vmaFreeDeviceMemoryFunction")
public interface VmaFreeDeviceMemoryFunctionI extends CallbackI.V {
String SIGNATURE = "(pill)v";
@Override
default String getSignature() { return SIGNATURE; }
@Override
default void callback(long args) {
invoke(
dcbArgPointer(args),
dcbArgInt(args),
dcbArgLongLong(args),
dcbArgLongLong(args)
);
}
/** Called before {@code vkFreeMemory}. */
void invoke(@NativeType("VmaAllocator") long allocator, @NativeType("uint32_t") int memoryType, @NativeType("VkDeviceMemory") long memory, @NativeType("VkDeviceSize") long size);
}