Class VulkanLWJGLHostAllocatorProxy

java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VulkanLWJGLHostAllocatorProxy
All Implemented Interfaces:
AutoCloseable

public final class VulkanLWJGLHostAllocatorProxy extends Object implements AutoCloseable
A holder for allocated callbacks.
  • 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 allocator
      allocator - The host allocator
      Returns:
      A proxy
    • callbackBuffer

      public org.lwjgl.vulkan.VkAllocationCallbacks callbackBuffer()
      Returns:
      The callback buffer
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable