org.lwjgl.util.vma.VmaAllocateDeviceMemoryFunctionI 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_vmaAllocateDeviceMemoryFunction")
public interface VmaAllocateDeviceMemoryFunctionI 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 after successful {@code vkAllocateMemory}. */
void invoke(@NativeType("VmaAllocator") long allocator, @NativeType("uint32_t") int memoryType, @NativeType("VkDeviceMemory") long memory, @NativeType("VkDeviceSize") long size);
}