Top Description Inners Constructors Methods
org.lwjgl.vulkan

public abstract Class VkInternalAllocationNotification

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

Application-defined memory allocation notification function.
C Specification

The type of 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

VkAllocationCallbacks

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static VkInternalAllocationNotification

Returns:

the new VkInternalAllocationNotification
create
(long functionPointer)

Creates a VkInternalAllocationNotification instance from the specified function pointer.

public static VkInternalAllocationNotification
create(VkInternalAllocationNotificationI instance)

Creates a VkInternalAllocationNotification instance that delegates to the specified VkInternalAllocationNotificationI instance.

public static VkInternalAllocationNotification
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

VkInternalAllocationNotificationback to summary
protected VkInternalAllocationNotification()
VkInternalAllocationNotificationback to summary
pack-priv VkInternalAllocationNotification(long functionPointer)

Method Detail

createback to summary
public static VkInternalAllocationNotification create(long functionPointer)

Creates a VkInternalAllocationNotification instance from the specified function pointer.

Returns:VkInternalAllocationNotification

the new VkInternalAllocationNotification

createback to summary
public static VkInternalAllocationNotification create(VkInternalAllocationNotificationI instance)

Creates a VkInternalAllocationNotification instance that delegates to the specified VkInternalAllocationNotificationI instance.

createSafeback to summary
public static VkInternalAllocationNotification createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.vulkan back to summary

private final Class VkInternalAllocationNotification.Container

extends VkInternalAllocationNotification
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final VkInternalAllocationNotificationI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, VkInternalAllocationNotificationI 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.VkInternalAllocationNotificationI.invoke.

Application-defined memory allocation notification function.
Inherited from org.lwjgl.vulkan.VkInternalAllocationNotification:
createcreatecreateSafe

Field Detail

delegateback to summary
private final VkInternalAllocationNotificationI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.vulkan.VkInternalAllocationNotificationI.invoke.

Doc from org.lwjgl.vulkan.VkInternalAllocationNotificationI.invoke.

Application-defined memory allocation 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