-
- All Superinterfaces:
java.lang.AutoCloseable
,VulkanHandleDispatchableType
,VulkanHandleType
- All Known Implementing Classes:
VMALWJGLAllocator
public interface VMAAllocatorType extends VulkanHandleDispatchableType
A configured VMA allocator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.VMAMappedMemoryType
mapMemory(VMAAllocationType allocation)
Map the memory associated with the given allocation.-
Methods inherited from interface com.io7m.jcoronado.api.VulkanHandleType
close, isClosed
-
-
-
-
Method Detail
-
createBuffer
VMAAllocationResult<VulkanBufferType> createBuffer(VMAAllocationCreateInfo alloc_create_info, VulkanBufferCreateInfo buffer_create_info) throws VulkanException
Allocate a buffer.- Parameters:
alloc_create_info
- The allocation creation infobuffer_create_info
- The buffer creation info- Returns:
- An allocation
- Throws:
VulkanException
- On errors
-
createImage
VMAAllocationResult<VulkanImageType> createImage(VMAAllocationCreateInfo alloc_create_info, VulkanImageCreateInfo image_create_info) throws VulkanException
Allocate an image.- Parameters:
alloc_create_info
- The allocation creation infoimage_create_info
- The image creation info- Returns:
- An allocation
- Throws:
VulkanException
- On errors
-
mapMemory
VMAMappedMemoryType mapMemory(VMAAllocationType allocation) throws VulkanException
Map the memory associated with the given allocation.- Parameters:
allocation
- The VMA allocation- Returns:
- The memory, mapped
- Throws:
VulkanException
- On errors
-
-