Top Description Inners Constructors Methods
org.lwjgl.util.vma

public abstract Class VmaAllocateDeviceMemoryFunction

extends Callback
implements VmaAllocateDeviceMemoryFunctionI
Class Inheritance
All Implemented Interfaces
org.lwjgl.util.vma.VmaAllocateDeviceMemoryFunctionI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.util.vma.VmaAllocateDeviceMemoryFunction.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be set to the VmaDeviceMemoryCallbacks struct.

Type


void (*invoke) (
    VmaAllocator allocator,
    uint32_t memoryType,
    VkDeviceMemory memory,
    VkDeviceSize size,
    void *pUserData
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static VmaAllocateDeviceMemoryFunction

Returns:

the new VmaAllocateDeviceMemoryFunction
create
(long functionPointer)

Creates a VmaAllocateDeviceMemoryFunction instance from the specified function pointer.

public static VmaAllocateDeviceMemoryFunction
create(VmaAllocateDeviceMemoryFunctionI instance)

Creates a VmaAllocateDeviceMemoryFunction instance that delegates to the specified VmaAllocateDeviceMemoryFunctionI instance.

public static VmaAllocateDeviceMemoryFunction
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

VmaAllocateDeviceMemoryFunctionback to summary
protected VmaAllocateDeviceMemoryFunction()
VmaAllocateDeviceMemoryFunctionback to summary
pack-priv VmaAllocateDeviceMemoryFunction(long functionPointer)

Method Detail

createback to summary
public static VmaAllocateDeviceMemoryFunction create(long functionPointer)

Creates a VmaAllocateDeviceMemoryFunction instance from the specified function pointer.

Returns:VmaAllocateDeviceMemoryFunction

the new VmaAllocateDeviceMemoryFunction

createback to summary
public static VmaAllocateDeviceMemoryFunction create(VmaAllocateDeviceMemoryFunctionI instance)

Creates a VmaAllocateDeviceMemoryFunction instance that delegates to the specified VmaAllocateDeviceMemoryFunctionI instance.

createSafeback to summary
public static VmaAllocateDeviceMemoryFunction createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.util.vma back to summary

private final Class VmaAllocateDeviceMemoryFunction.Container

extends VmaAllocateDeviceMemoryFunction
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final VmaAllocateDeviceMemoryFunctionI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long allocator, int memoryType, long memory, long size, long pUserData)

Implements org.lwjgl.util.vma.VmaAllocateDeviceMemoryFunctionI.invoke.

Called after successful vkAllocateMemory.
Inherited from org.lwjgl.util.vma.VmaAllocateDeviceMemoryFunction:
createcreatecreateSafe

Field Detail

delegateback to summary
private final VmaAllocateDeviceMemoryFunctionI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long allocator, int memoryType, long memory, long size, long pUserData)

Implements org.lwjgl.util.vma.VmaAllocateDeviceMemoryFunctionI.invoke.

Doc from org.lwjgl.util.vma.VmaAllocateDeviceMemoryFunctionI.invoke.

Called after successful vkAllocateMemory.

Annotations
@Override