Top Description Inners Constructors Methods
org.lwjgl.vulkan

public abstract Class VkInternalFreeNotification

extends Callback
implements VkInternalFreeNotificationI
Class Inheritance
All Implemented Interfaces
org.lwjgl.vulkan.VkInternalFreeNotificationI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.vulkan.VkInternalFreeNotification.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Application-defined memory free notification function.
C Specification

The type of pfnInternalFree is:


typedef void (VKAPI_PTR *PFN_vkInternalFreeNotification)(
    void*                                       pUserData,
    size_t                                      size,
    VkInternalAllocationType                    allocationType,
    VkSystemAllocationScope                     allocationScope);
Description

This is a purely informational callback.

See Also

VkAllocationCallbacks

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
VkInternalFreeNotification(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static VkInternalFreeNotification

Returns:

the new VkInternalFreeNotification
create
(long functionPointer)

Creates a VkInternalFreeNotification instance from the specified function pointer.

public static VkInternalFreeNotification
create(VkInternalFreeNotificationI instance)

Creates a VkInternalFreeNotification instance that delegates to the specified VkInternalFreeNotificationI instance.

public static VkInternalFreeNotification
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

VkInternalFreeNotificationback to summary
protected VkInternalFreeNotification()
VkInternalFreeNotificationback to summary
pack-priv VkInternalFreeNotification(long functionPointer)

Method Detail

createback to summary
public static VkInternalFreeNotification create(long functionPointer)

Creates a VkInternalFreeNotification instance from the specified function pointer.

Returns:VkInternalFreeNotification

the new VkInternalFreeNotification

createback to summary
public static VkInternalFreeNotification create(VkInternalFreeNotificationI instance)

Creates a VkInternalFreeNotification instance that delegates to the specified VkInternalFreeNotificationI instance.

createSafeback to summary
public static VkInternalFreeNotification createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.vulkan back to summary

private final Class VkInternalFreeNotification.Container

extends VkInternalFreeNotification
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final VkInternalFreeNotificationI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, VkInternalFreeNotificationI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the value specified for VkAllocationCallbacks::pUserData in the allocator specified by the application.
pUserData
,
long
the requested size of an allocation.
size
,
int
a VkInternalAllocationType value specifying the requested type of an allocation.
allocationType
,
int
a VkSystemAllocationScope value specifying the allocation scope of the lifetime of the allocation, as described here.
allocationScope
)

Implements org.lwjgl.vulkan.VkInternalFreeNotificationI.invoke.

Application-defined memory free notification function.
Inherited from org.lwjgl.vulkan.VkInternalFreeNotification:
createcreatecreateSafe

Field Detail

delegateback to summary
private final VkInternalFreeNotificationI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, VkInternalFreeNotificationI delegate)

Method Detail

invokeback to summary
public void invoke(long pUserData, long size, int allocationType, int allocationScope)

Implements org.lwjgl.vulkan.VkInternalFreeNotificationI.invoke.

Doc from org.lwjgl.vulkan.VkInternalFreeNotificationI.invoke.

Application-defined memory free notification function.

Parameters
pUserData:long

the value specified for VkAllocationCallbacks::pUserData in the allocator specified by the application.

size:long

the requested size of an allocation.

allocationType:int

a VkInternalAllocationType value specifying the requested type of an allocation.

allocationScope:int

a VkSystemAllocationScope value specifying the allocation scope of the lifetime of the allocation, as described here.

Annotations
@Override