Package org.lwjgl.vulkan
Class VkFreeFunction
- java.lang.Object
-
- org.lwjgl.system.Callback
-
- org.lwjgl.vulkan.VkFreeFunction
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.CallbackI
,org.lwjgl.system.CallbackI.V
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
,VkFreeFunctionI
public abstract class VkFreeFunction extends org.lwjgl.system.Callback implements VkFreeFunctionI
Application-defined memory free function.C Specification
The type of
pfnFree
is:typedef void (VKAPI_PTR *PFN_vkFreeFunction)( void* pUserData, void* pMemory);
Description
pMemory
may beNULL
, which the callback must handle safely. IfpMemory
is non-NULL
, it must be a pointer previously allocated bypfnAllocation
orpfnReallocation
. The application should free this memory.See Also
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
org.lwjgl.system.CallbackI.B, org.lwjgl.system.CallbackI.D, org.lwjgl.system.CallbackI.F, org.lwjgl.system.CallbackI.I, org.lwjgl.system.CallbackI.J, org.lwjgl.system.CallbackI.N, org.lwjgl.system.CallbackI.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from interface org.lwjgl.vulkan.VkFreeFunctionI
SIGNATURE
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VkFreeFunction
create(long functionPointer)
Creates aVkFreeFunction
instance from the specified function pointer.static VkFreeFunction
create(VkFreeFunctionI instance)
Creates aVkFreeFunction
instance that delegates to the specifiedVkFreeFunctionI
instance.static VkFreeFunction
createSafe(long functionPointer)
-
Methods inherited from class org.lwjgl.system.Callback
__stdcall, address, equals, free, free, get, getSafe, hashCode, toString
-
Methods inherited from interface org.lwjgl.vulkan.VkFreeFunctionI
callback, getSignature, invoke
-
-
-
-
Method Detail
-
create
public static VkFreeFunction create(long functionPointer)
Creates aVkFreeFunction
instance from the specified function pointer.- Returns:
- the new
VkFreeFunction
-
createSafe
@Nullable public static VkFreeFunction createSafe(long functionPointer)
-
create
public static VkFreeFunction create(VkFreeFunctionI instance)
Creates aVkFreeFunction
instance that delegates to the specifiedVkFreeFunctionI
instance.
-
-