org.lwjgl.vulkan.VkInternalAllocationNotificationI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vulkan Show documentation
Show all versions of lwjgl-vulkan Show documentation
A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import org.lwjgl.system.*;
import static org.lwjgl.system.dyncall.DynCallback.*;
/**
* Application-defined memory allocation notification function.
*
* C Specification
*
* The type of {@code pfnInternalAllocation} is:
*
* typedef void (VKAPI_PTR *PFN_vkInternalAllocationNotification)(
void* pUserData,
size_t size,
VkInternalAllocationType allocationType,
VkSystemAllocationScope allocationScope);
*
* Description
*
* This is a purely informational callback.
*
* See Also
*
* {@link VkAllocationCallbacks}
*/
@FunctionalInterface
public interface VkInternalAllocationNotificationI extends CallbackI.V {
String SIGNATURE = Callback.__stdcall("(ppii)v");
@Override
default String getSignature() { return SIGNATURE; }
@Override
default void callback(long args) {
invoke(
dcbArgPointer(args),
dcbArgPointer(args),
dcbArgInt(args),
dcbArgInt(args)
);
}
/**
* Application-defined memory allocation notification function.
*
* @param pUserData the value specified for {@link VkAllocationCallbacks}{@code ::pUserData} in the allocator specified by the application.
* @param size the requested size of an allocation.
* @param allocationType the requested type of an allocation.
* @param allocationScope a {@code VkSystemAllocationScope} value specifying the allocation scope of the lifetime of the allocation, as described here.
*/
void invoke(long pUserData, long size, int allocationType, int allocationScope);
}