- java.lang.Object
-
- com.io7m.jcoronado.lwjgl.VMALWJGLAllocator
-
- All Implemented Interfaces:
VulkanHandleDispatchableType
,VulkanHandleType
,VMAAllocatorType
,java.lang.AutoCloseable
public final class VMALWJGLAllocator extends java.lang.Object implements VMAAllocatorType
- See Also:
- "VmaAllocator"
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkNotClosed()
void
close()
Destroy the object.protected void
closeActual()
VMAAllocationResult<VulkanBufferType>
createBuffer(VMAAllocationCreateInfo alloc_create_info, VulkanBufferCreateInfo buffer_create_info)
Allocate a buffer.VMAAllocationResult<VulkanImageType>
createImage(VMAAllocationCreateInfo alloc_create_info, VulkanImageCreateInfo image_create_info)
Allocate an image.boolean
equals(java.lang.Object o)
int
hashCode()
protected VulkanLWJGLHostAllocatorProxy
hostAllocatorProxy()
boolean
isClosed()
protected org.slf4j.Logger
logger()
VMAMappedMemoryType
mapMemory(VMAAllocationType allocation)
Map the memory associated with the given allocation.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanHandleType
close, isClosed
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
logger
protected org.slf4j.Logger logger()
-
closeActual
protected void closeActual()
-
createBuffer
public VMAAllocationResult<VulkanBufferType> createBuffer(VMAAllocationCreateInfo alloc_create_info, VulkanBufferCreateInfo buffer_create_info) throws VulkanException
Description copied from interface:VMAAllocatorType
Allocate a buffer.- Specified by:
createBuffer
in interfaceVMAAllocatorType
- Parameters:
alloc_create_info
- The allocation creation infobuffer_create_info
- The buffer creation info- Returns:
- An allocation
- Throws:
VulkanException
- On errors
-
createImage
public VMAAllocationResult<VulkanImageType> createImage(VMAAllocationCreateInfo alloc_create_info, VulkanImageCreateInfo image_create_info) throws VulkanException
Description copied from interface:VMAAllocatorType
Allocate an image.- Specified by:
createImage
in interfaceVMAAllocatorType
- Parameters:
alloc_create_info
- The allocation creation infoimage_create_info
- The image creation info- Returns:
- An allocation
- Throws:
VulkanException
- On errors
-
mapMemory
public VMAMappedMemoryType mapMemory(VMAAllocationType allocation) throws VulkanException
Description copied from interface:VMAAllocatorType
Map the memory associated with the given allocation.- Specified by:
mapMemory
in interfaceVMAAllocatorType
- Parameters:
allocation
- The VMA allocation- Returns:
- The memory, mapped
- Throws:
VulkanException
- On errors
-
hostAllocatorProxy
protected final VulkanLWJGLHostAllocatorProxy hostAllocatorProxy()
-
isClosed
public final boolean isClosed()
- Specified by:
isClosed
in interfaceVulkanHandleType
- Returns:
true
iff the handle has been destroyed withVulkanHandleType.close()
- See Also:
VulkanHandleType.close()
-
close
public final void close()
Description copied from interface:VulkanHandleType
Destroy the object.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceVulkanHandleType
-
checkNotClosed
protected final void checkNotClosed() throws VulkanDestroyedException
- Throws:
VulkanDestroyedException
-
-