Class VulkanLWJGLHostAllocatorProxy
java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VulkanLWJGLHostAllocatorProxy
- All Implemented Interfaces:
AutoCloseable
A holder for allocated callbacks.
-
Method Summary
Modifier and TypeMethodDescriptionorg.lwjgl.vulkan.VkAllocationCallbacksvoidclose()create(org.lwjgl.system.MemoryStack stack, Optional<VulkanHostAllocatorType> allocator) Create a proxy for the given allocator.
-
Method Details
-
create
public static VulkanLWJGLHostAllocatorProxy create(org.lwjgl.system.MemoryStack stack, Optional<VulkanHostAllocatorType> allocator) Create a proxy for the given allocator.- Parameters:
stack- A stack allocatorallocator- The host allocator- Returns:
- A proxy
-
callbackBuffer
public org.lwjgl.vulkan.VkAllocationCallbacks callbackBuffer()- Returns:
- The callback buffer
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-