Interface VulkanHostAllocatorCallbacksType.AllocationFunctionType
- All Known Subinterfaces:
VulkanHostAllocatorType
- All Known Implementing Classes:
VulkanHostAllocatorTracker, VulkanLWJGLHostAllocatorJeMalloc
- Enclosing interface:
VulkanHostAllocatorCallbacksType
public static interface VulkanHostAllocatorCallbacksType.AllocationFunctionType
A function to allocate memory.
-
Method Summary
Modifier and TypeMethodDescriptionlongallocate(long size, long alignment, VulkanSystemAllocationScope scope) Allocatesizeoctets of memory, aligned toalignment, of scopescope.
-
Method Details
-
allocate
Allocatesizeoctets of memory, aligned toalignment, of scopescope. The function must return the address of the allocated memory as an integer, or0if the allocation has failed. The function MUST NOT raise exceptions under any circumstances.- Parameters:
size- The size of the allocationalignment- The alignment of the allocationscope- The scope of the allocation- Returns:
- The memory address
-