Class VulkanLWJGLHostAllocatorProxy

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public final class VulkanLWJGLHostAllocatorProxy
    extends java.lang.Object
    implements java.lang.AutoCloseable
    A holder for allocated callbacks.
    • Method Detail

      • create

        public static VulkanLWJGLHostAllocatorProxy create​(org.lwjgl.system.MemoryStack stack,
                                                           java.util.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 java.lang.AutoCloseable