Package org.lwjgl.vulkan
Interface VkFreeFunctionI
-
- All Superinterfaces:
org.lwjgl.system.CallbackI,org.lwjgl.system.Pointer
- All Known Implementing Classes:
VkFreeFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface VkFreeFunctionI extends org.lwjgl.system.CallbackIApplication-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
-
-
Field Summary
Fields Modifier and Type Field Description static org.lwjgl.system.libffi.FFICIFCIF
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcallback(long ret, long args)default org.lwjgl.system.libffi.FFICIFgetCallInterface()voidinvoke(long pUserData, long pMemory)Application-defined memory free function.
-
-
-
Method Detail
-
getCallInterface
default org.lwjgl.system.libffi.FFICIF getCallInterface()
- Specified by:
getCallInterfacein interfaceorg.lwjgl.system.CallbackI
-
callback
default void callback(long ret, long args)- Specified by:
callbackin interfaceorg.lwjgl.system.CallbackI
-
invoke
void invoke(long pUserData, long pMemory)Application-defined memory free function.- Parameters:
pUserData- the value specified forVkAllocationCallbacks::pUserDatain the allocator specified by the application.pMemory- the allocation to be freed.
-
-