Interface VMAAllocatorType
- All Superinterfaces:
AutoCloseable,VulkanHandleDispatchableType,VulkanHandleType
- All Known Implementing Classes:
VMALWJGLAllocator
A configured VMA allocator.
-
Method Summary
Modifier and TypeMethodDescriptioncreateBuffer(VMAAllocationCreateInfo alloc_create_info, VulkanBufferCreateInfo buffer_create_info) Allocate a buffer.createImage(VMAAllocationCreateInfo alloc_create_info, VulkanImageCreateInfo image_create_info) Allocate an image.mapMemory(VMAAllocationType allocation) Map the memory associated with the given allocation.Methods inherited from interface com.io7m.jcoronado.api.VulkanHandleType
close, isClosed
-
Method Details
-
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
Map the memory associated with the given allocation.- Parameters:
allocation- The VMA allocation- Returns:
- The memory, mapped
- Throws:
VulkanException- On errors
-