Class VMALWJGLAllocator
java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VMALWJGLAllocator
- All Implemented Interfaces:
VulkanHandleDispatchableType, VulkanHandleType, VMAAllocatorType, AutoCloseable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVMALWJGLAllocator(VulkanLWJGLLogicalDevice inDevice, long inAllocatorAddress, VulkanLWJGLHostAllocatorProxy inHostAllocatorProxy) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidfinal voidclose()Destroy the object.protected voidcreateBuffer(VMAAllocationCreateInfo alloc_create_info, VulkanBufferCreateInfo buffer_create_info) Allocate a buffer.createImage(VMAAllocationCreateInfo alloc_create_info, VulkanImageCreateInfo image_create_info) Allocate an image.final booleanfinal longhandle()final inthashCode()final booleanisClosed()protected org.slf4j.Loggerlogger()mapMemory(VMAAllocationType allocation) Map the memory associated with the given allocation.voidSet the object name for debugging.final StringtoString()Methods inherited from interface VulkanHandleType
close, isClosed
-
Constructor Details
-
VMALWJGLAllocator
public VMALWJGLAllocator(VulkanLWJGLLogicalDevice inDevice, long inAllocatorAddress, VulkanLWJGLHostAllocatorProxy inHostAllocatorProxy) - Parameters:
inDevice- The deviceinAllocatorAddress- The allocatorinHostAllocatorProxy- The allocator proxy- See Also:
-
-
Method Details
-
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:VMAAllocatorTypeAllocate a buffer.- Specified by:
createBufferin 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:VMAAllocatorTypeAllocate an image.- Specified by:
createImagein interfaceVMAAllocatorType- Parameters:
alloc_create_info- The allocation creation infoimage_create_info- The image creation info- Returns:
- An allocation
- Throws:
VulkanException- On errors
-
mapMemory
Description copied from interface:VMAAllocatorTypeMap the memory associated with the given allocation.- Specified by:
mapMemoryin interfaceVMAAllocatorType- Parameters:
allocation- The VMA allocation- Returns:
- The memory, mapped
- Throws:
VulkanException- On errors
-
hostAllocatorProxy
- Returns:
- The underlying host allocator proxy
-
isClosed
public final boolean isClosed()- Specified by:
isClosedin interfaceVulkanHandleType- Returns:
trueiff the handle has been destroyed withVulkanHandleType.close()- See Also:
-
close
public final void close()Description copied from interface:VulkanHandleTypeDestroy the object.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVulkanHandleType
-
equals
-
hashCode
-
toString
-
handle
public final long handle()- Returns:
- The raw handle
-
checkNotClosed
- Throws:
VulkanDestroyedException
-
setName
-