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
pfnFreeis:typedef void (VKAPI_PTR *PFN_vkFreeFunction)( void* pUserData, void* pMemory);Description
pMemorymay beNULL, which the callback must handle safely. IfpMemoryis non-NULL, it must be a pointer previously allocated bypfnAllocationorpfnReallocation. 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 VkFreeFunctioncreate(long functionPointer)Creates aVkFreeFunctioninstance from the specified function pointer.static VkFreeFunctioncreate(VkFreeFunctionI instance)Creates aVkFreeFunctioninstance that delegates to the specifiedVkFreeFunctionIinstance.static VkFreeFunctioncreateSafe(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 aVkFreeFunctioninstance 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 aVkFreeFunctioninstance that delegates to the specifiedVkFreeFunctionIinstance.
-
-