Uses of Record Class
club.doki7.vma.handle.VmaAllocator
Packages that use VmaAllocator
-
Uses of VmaAllocator in club.doki7.vma
Methods in club.doki7.vma with parameters of type VmaAllocatorModifier and TypeMethodDescriptionint
VMA.allocateMemory
(VmaAllocator allocator, IVkMemoryRequirements pVkMemoryRequirements, IVmaAllocationCreateInfo pCreateInfo, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) General purpose memory allocation.int
VMA.allocateMemoryForBuffer
(VmaAllocator allocator, VkBuffer buffer, IVmaAllocationCreateInfo pCreateInfo, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) Allocates memory suitable for givenVkBuffer
.int
VMA.allocateMemoryForImage
(VmaAllocator allocator, VkImage image, IVmaAllocationCreateInfo pCreateInfo, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) Allocates memory suitable for givenVkImage
.int
VMA.allocateMemoryPages
(VmaAllocator allocator, IVkMemoryRequirements pVkMemoryRequirements, IVmaAllocationCreateInfo pCreateInfo, long allocationCount, VmaAllocation.Ptr pAllocations, @Nullable IVmaAllocationInfo pAllocationInfo) General purpose memory allocation for multiple allocation objects at once.int
VMA.beginDefragmentation
(VmaAllocator allocator, IVmaDefragmentationInfo pInfo, VmaDefragmentationContext.Ptr pContext) Begins defragmentation process.int
VMA.beginDefragmentationPass
(VmaAllocator allocator, VmaDefragmentationContext context, IVmaDefragmentationPassMoveInfo pPassInfo) Starts single defragmentation pass.int
VMA.bindBufferMemory
(VmaAllocator allocator, VmaAllocation allocation, VkBuffer buffer) Binds buffer to allocation.int
VMA.bindBufferMemory2
(VmaAllocator allocator, VmaAllocation allocation, long allocationLocalOffset, VkBuffer buffer, @NotNull MemorySegment pNext) Binds buffer to allocation with additional parameters.int
VMA.bindImageMemory
(VmaAllocator allocator, VmaAllocation allocation, VkImage image) Binds image to allocation.int
VMA.bindImageMemory2
(VmaAllocator allocator, VmaAllocation allocation, long allocationLocalOffset, VkImage image, @NotNull MemorySegment pNext) Binds image to allocation with additional parameters.void
VMA.buildStatsString
(VmaAllocator allocator, PointerPtr ppStatsString, int detailedMap) Builds and returns statistics as a null-terminated string in JSON format.void
VMA.calculatePoolStatistics
(VmaAllocator allocator, VmaPool pool, IVmaDetailedStatistics pPoolStats) Retrieves detailed statistics of existingVmaPool
object.void
VMA.calculateStatistics
(VmaAllocator allocator, IVmaTotalStatistics pStats) Retrieves statistics from current state of the Allocator.int
VMA.checkCorruption
(VmaAllocator allocator, int memoryTypeBits) Checks magic number in margins around all allocations in given memory types (in both default and custom pools) in search for corruptions.int
VMA.checkPoolCorruption
(VmaAllocator allocator, VmaPool pool) Checks magic number in margins around all allocations in given memory pool in search for corruptions.int
VMA.copyAllocationToMemory
(VmaAllocator allocator, VmaAllocation srcAllocation, long srcAllocationLocalOffset, @NotNull MemorySegment pDstHostPointer, long size) Invalidates memory in the host caches if needed, maps the allocation temporarily if needed, and copies data from it to a specified host pointer.int
VMA.copyMemoryToAllocation
(VmaAllocator allocator, @NotNull MemorySegment pSrcHostPointer, VmaAllocation dstAllocation, long dstAllocationLocalOffset, long size) Maps the allocation temporarily if needed, copies data from specified host pointer to it, and flushes the memory from the host caches if needed.int
VMA.createAliasingBuffer
(VmaAllocator allocator, VmaAllocation allocation, IVkBufferCreateInfo pBufferCreateInfo, VkBuffer.Ptr pBuffer) Creates a newVkBuffer
, binds already created memory for it.int
VMA.createAliasingBuffer2
(VmaAllocator allocator, VmaAllocation allocation, long allocationLocalOffset, IVkBufferCreateInfo pBufferCreateInfo, VkBuffer.Ptr pBuffer) Creates a newVkBuffer
, binds already created memory for it.int
VMA.createAliasingImage
(VmaAllocator allocator, VmaAllocation allocation, IVkImageCreateInfo pImageCreateInfo, VkImage.Ptr pImage) Function similar to vmaCreateAliasingBuffer() but for images.int
VMA.createAliasingImage2
(VmaAllocator allocator, VmaAllocation allocation, long allocationLocalOffset, IVkImageCreateInfo pImageCreateInfo, VkImage.Ptr pImage) Function similar to vmaCreateAliasingBuffer2() but for images.int
VMA.createBuffer
(VmaAllocator allocator, IVkBufferCreateInfo pBufferCreateInfo, IVmaAllocationCreateInfo pAllocationCreateInfo, VkBuffer.Ptr pBuffer, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) Creates a newVkBuffer
, allocates and binds memory for it.int
VMA.createBufferWithAlignment
(VmaAllocator allocator, IVkBufferCreateInfo pBufferCreateInfo, IVmaAllocationCreateInfo pAllocationCreateInfo, long minAlignment, VkBuffer.Ptr pBuffer, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) Creates a buffer with additional minimum alignment.int
VMA.createImage
(VmaAllocator allocator, IVkImageCreateInfo pImageCreateInfo, IVmaAllocationCreateInfo pAllocationCreateInfo, VkImage.Ptr pImage, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) Function similar to vmaCreateBuffer().int
VMA.createPool
(VmaAllocator allocator, IVmaPoolCreateInfo pCreateInfo, VmaPool.Ptr pPool) Allocates Vulkan device memory and createsVmaPool
object.void
VMA.destroyAllocator
(@Nullable VmaAllocator allocator) Destroys allocator object.void
VMA.destroyBuffer
(VmaAllocator allocator, @Nullable VkBuffer buffer, @Nullable VmaAllocation allocation) Destroys Vulkan buffer and frees allocated memory.void
VMA.destroyImage
(VmaAllocator allocator, @Nullable VkImage image, @Nullable VmaAllocation allocation) Destroys Vulkan image and frees allocated memory.void
VMA.destroyPool
(VmaAllocator allocator, @Nullable VmaPool pool) DestroysVmaPool
object and frees Vulkan device memory.void
VMA.endDefragmentation
(VmaAllocator allocator, VmaDefragmentationContext context, @Nullable IVmaDefragmentationStats pStats) Ends defragmentation process.int
VMA.endDefragmentationPass
(VmaAllocator allocator, VmaDefragmentationContext context, IVmaDefragmentationPassMoveInfo pPassInfo) Ends single defragmentation pass.int
VMA.findMemoryTypeIndex
(VmaAllocator allocator, int memoryTypeBits, IVmaAllocationCreateInfo pAllocationCreateInfo, IntPtr pMemoryTypeIndex) Helps to find memoryTypeIndex, given memoryTypeBits and VmaAllocationCreateInfo.int
VMA.findMemoryTypeIndexForBufferInfo
(VmaAllocator allocator, IVkBufferCreateInfo pBufferCreateInfo, IVmaAllocationCreateInfo pAllocationCreateInfo, IntPtr pMemoryTypeIndex) Helps to find memoryTypeIndex, given VkBufferCreateInfo and VmaAllocationCreateInfo.int
VMA.findMemoryTypeIndexForImageInfo
(VmaAllocator allocator, IVkImageCreateInfo pImageCreateInfo, IVmaAllocationCreateInfo pAllocationCreateInfo, IntPtr pMemoryTypeIndex) Helps to find memoryTypeIndex, given VkImageCreateInfo and VmaAllocationCreateInfo.int
VMA.flushAllocation
(VmaAllocator allocator, VmaAllocation allocation, long offset, long size) Flushes memory of given allocation.int
VMA.flushAllocations
(VmaAllocator allocator, int allocationCount, VmaAllocation.Ptr allocations, @Nullable LongPtr offsets, @Nullable LongPtr sizes) Flushes memory of given set of allocations.void
VMA.freeMemory
(VmaAllocator allocator, @Nullable VmaAllocation allocation) Frees memory previously allocated using vmaAllocateMemory(), vmaAllocateMemoryForBuffer(), or vmaAllocateMemoryForImage().void
VMA.freeMemoryPages
(VmaAllocator allocator, long allocationCount, VmaAllocation.Ptr pAllocations) Frees memory and destroys multiple allocations.void
VMA.freeStatsString
(VmaAllocator allocator, @Nullable BytePtr pStatsString) void
VMA.getAllocationInfo
(VmaAllocator allocator, VmaAllocation allocation, IVmaAllocationInfo pAllocationInfo) Returns current information about specified allocation.void
VMA.getAllocationInfo2
(VmaAllocator allocator, VmaAllocation allocation, IVmaAllocationInfo2 pAllocationInfo) Returns extended information about specified allocation.void
VMA.getAllocationMemoryProperties
(VmaAllocator allocator, VmaAllocation allocation, IntPtr pFlags) Given an allocation, returns Property Flags of its memory type.void
VMA.getAllocatorInfo
(VmaAllocator allocator, IVmaAllocatorInfo pAllocatorInfo) Returns information about existingVmaAllocator
object - handle to Vulkan device etc.void
VMA.getHeapBudgets
(VmaAllocator allocator, IVmaBudget pBudgets) Retrieves information about current memory usage and budget for all memory heaps.void
VMA.getMemoryProperties
(VmaAllocator allocator, PointerPtr ppPhysicalDeviceMemoryProperties) PhysicalDeviceMemoryProperties are fetched from physicalDevice by the allocator.void
VMA.getMemoryTypeProperties
(VmaAllocator allocator, int memoryTypeIndex, IntPtr pFlags) Given Memory Type Index, returns Property Flags of this memory type.int
VMA.getMemoryWin32Handle
(VmaAllocator allocator, VmaAllocation allocation, @NotNull MemorySegment hTargetProcess, PointerPtr pHandle) Given an allocation, returns Win32 handle that may be imported by other processes or APIs.void
VMA.getPhysicalDeviceProperties
(VmaAllocator allocator, PointerPtr ppPhysicalDeviceProperties) PhysicalDeviceProperties are fetched from physicalDevice by the allocator.void
VMA.getPoolName
(VmaAllocator allocator, VmaPool pool, PointerPtr ppName) Retrieves name of a custom pool.void
VMA.getPoolStatistics
(VmaAllocator allocator, VmaPool pool, IVmaStatistics pPoolStats) Retrieves statistics of existingVmaPool
object.int
VMA.invalidateAllocation
(VmaAllocator allocator, VmaAllocation allocation, long offset, long size) Invalidates memory of given allocation.int
VMA.invalidateAllocations
(VmaAllocator allocator, int allocationCount, VmaAllocation.Ptr allocations, @Nullable LongPtr offsets, @Nullable LongPtr sizes) Invalidates memory of given set of allocations.int
VMA.mapMemory
(VmaAllocator allocator, VmaAllocation allocation, PointerPtr ppData) Maps memory represented by given allocation and returns pointer to it.void
VMA.setAllocationName
(VmaAllocator allocator, VmaAllocation allocation, @Nullable BytePtr pName) Sets pName in given allocation to new value.void
VMA.setAllocationUserData
(VmaAllocator allocator, VmaAllocation allocation, @NotNull MemorySegment pUserData) Sets pUserData in given allocation to new value.void
VMA.setCurrentFrameIndex
(VmaAllocator allocator, int frameIndex) Sets index of the current frame.void
VMA.setPoolName
(VmaAllocator allocator, VmaPool pool, @Nullable BytePtr pName) Sets name of a custom pool.void
VMA.unmapMemory
(VmaAllocator allocator, VmaAllocation allocation) Unmaps memory represented by given allocation, mapped previously using vmaMapMemory(). -
Uses of VmaAllocator in club.doki7.vma.handle
Classes in club.doki7.vma.handle that implement interfaces with type arguments of type VmaAllocatorModifier and TypeClassDescriptionstatic final record
Represents a pointer toVmaAllocator
handle(s) in native memory.Methods in club.doki7.vma.handle that return VmaAllocatorModifier and TypeMethodDescription@Nullable VmaAllocator
VmaAllocator.Ptr.read()
@Nullable VmaAllocator
VmaAllocator.Ptr.read
(long index) Methods in club.doki7.vma.handle that return types with arguments of type VmaAllocatorMethods in club.doki7.vma.handle with parameters of type VmaAllocatorModifier and TypeMethodDescriptionstatic VmaAllocator.Ptr
VmaAllocator.Ptr.allocate
(Arena arena, @Nullable VmaAllocator @NotNull [] values) static VmaAllocator.Ptr
VmaAllocator.Ptr.allocateV
(Arena arena, @Nullable VmaAllocator value0, @Nullable VmaAllocator... values) void
VmaAllocator.Ptr.write
(long index, @Nullable VmaAllocator value) void
VmaAllocator.Ptr.write
(@Nullable VmaAllocator value) void
VmaAllocator.Ptr.write
(@Nullable VmaAllocator[] values) void
VmaAllocator.Ptr.writeV
(@Nullable VmaAllocator value0, @Nullable VmaAllocator... values) Method parameters in club.doki7.vma.handle with type arguments of type VmaAllocatorModifier and TypeMethodDescriptionstatic VmaAllocator.Ptr
VmaAllocator.Ptr.allocate
(Arena arena, @NotNull Collection<@Nullable VmaAllocator> values)