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 TypeMethodDescriptionintVMA.allocateMemory(VmaAllocator allocator, IVkMemoryRequirements pVkMemoryRequirements, IVmaAllocationCreateInfo pCreateInfo, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) General purpose memory allocation.intVMA.allocateMemoryForBuffer(VmaAllocator allocator, VkBuffer buffer, IVmaAllocationCreateInfo pCreateInfo, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) Allocates memory suitable for givenVkBuffer.intVMA.allocateMemoryForImage(VmaAllocator allocator, VkImage image, IVmaAllocationCreateInfo pCreateInfo, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) Allocates memory suitable for givenVkImage.intVMA.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.intVMA.beginDefragmentation(VmaAllocator allocator, IVmaDefragmentationInfo pInfo, VmaDefragmentationContext.Ptr pContext) Begins defragmentation process.intVMA.beginDefragmentationPass(VmaAllocator allocator, VmaDefragmentationContext context, IVmaDefragmentationPassMoveInfo pPassInfo) Starts single defragmentation pass.intVMA.bindBufferMemory(VmaAllocator allocator, VmaAllocation allocation, VkBuffer buffer) Binds buffer to allocation.intVMA.bindBufferMemory2(VmaAllocator allocator, VmaAllocation allocation, long allocationLocalOffset, VkBuffer buffer, @NotNull MemorySegment pNext) Binds buffer to allocation with additional parameters.intVMA.bindImageMemory(VmaAllocator allocator, VmaAllocation allocation, VkImage image) Binds image to allocation.intVMA.bindImageMemory2(VmaAllocator allocator, VmaAllocation allocation, long allocationLocalOffset, VkImage image, @NotNull MemorySegment pNext) Binds image to allocation with additional parameters.voidVMA.buildStatsString(VmaAllocator allocator, PointerPtr ppStatsString, int detailedMap) Builds and returns statistics as a null-terminated string in JSON format.voidVMA.calculatePoolStatistics(VmaAllocator allocator, VmaPool pool, IVmaDetailedStatistics pPoolStats) Retrieves detailed statistics of existingVmaPoolobject.voidVMA.calculateStatistics(VmaAllocator allocator, IVmaTotalStatistics pStats) Retrieves statistics from current state of the Allocator.intVMA.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.intVMA.checkPoolCorruption(VmaAllocator allocator, VmaPool pool) Checks magic number in margins around all allocations in given memory pool in search for corruptions.intVMA.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.intVMA.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.intVMA.createAliasingBuffer(VmaAllocator allocator, VmaAllocation allocation, IVkBufferCreateInfo pBufferCreateInfo, VkBuffer.Ptr pBuffer) Creates a newVkBuffer, binds already created memory for it.intVMA.createAliasingBuffer2(VmaAllocator allocator, VmaAllocation allocation, long allocationLocalOffset, IVkBufferCreateInfo pBufferCreateInfo, VkBuffer.Ptr pBuffer) Creates a newVkBuffer, binds already created memory for it.intVMA.createAliasingImage(VmaAllocator allocator, VmaAllocation allocation, IVkImageCreateInfo pImageCreateInfo, VkImage.Ptr pImage) Function similar to vmaCreateAliasingBuffer() but for images.intVMA.createAliasingImage2(VmaAllocator allocator, VmaAllocation allocation, long allocationLocalOffset, IVkImageCreateInfo pImageCreateInfo, VkImage.Ptr pImage) Function similar to vmaCreateAliasingBuffer2() but for images.intVMA.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.intVMA.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.intVMA.createImage(VmaAllocator allocator, IVkImageCreateInfo pImageCreateInfo, IVmaAllocationCreateInfo pAllocationCreateInfo, VkImage.Ptr pImage, VmaAllocation.Ptr pAllocation, @Nullable IVmaAllocationInfo pAllocationInfo) Function similar to vmaCreateBuffer().intVMA.createPool(VmaAllocator allocator, IVmaPoolCreateInfo pCreateInfo, VmaPool.Ptr pPool) Allocates Vulkan device memory and createsVmaPoolobject.voidVMA.destroyAllocator(@Nullable VmaAllocator allocator) Destroys allocator object.voidVMA.destroyBuffer(VmaAllocator allocator, @Nullable VkBuffer buffer, @Nullable VmaAllocation allocation) Destroys Vulkan buffer and frees allocated memory.voidVMA.destroyImage(VmaAllocator allocator, @Nullable VkImage image, @Nullable VmaAllocation allocation) Destroys Vulkan image and frees allocated memory.voidVMA.destroyPool(VmaAllocator allocator, @Nullable VmaPool pool) DestroysVmaPoolobject and frees Vulkan device memory.voidVMA.endDefragmentation(VmaAllocator allocator, VmaDefragmentationContext context, @Nullable IVmaDefragmentationStats pStats) Ends defragmentation process.intVMA.endDefragmentationPass(VmaAllocator allocator, VmaDefragmentationContext context, IVmaDefragmentationPassMoveInfo pPassInfo) Ends single defragmentation pass.intVMA.findMemoryTypeIndex(VmaAllocator allocator, int memoryTypeBits, IVmaAllocationCreateInfo pAllocationCreateInfo, IntPtr pMemoryTypeIndex) Helps to find memoryTypeIndex, given memoryTypeBits and VmaAllocationCreateInfo.intVMA.findMemoryTypeIndexForBufferInfo(VmaAllocator allocator, IVkBufferCreateInfo pBufferCreateInfo, IVmaAllocationCreateInfo pAllocationCreateInfo, IntPtr pMemoryTypeIndex) Helps to find memoryTypeIndex, given VkBufferCreateInfo and VmaAllocationCreateInfo.intVMA.findMemoryTypeIndexForImageInfo(VmaAllocator allocator, IVkImageCreateInfo pImageCreateInfo, IVmaAllocationCreateInfo pAllocationCreateInfo, IntPtr pMemoryTypeIndex) Helps to find memoryTypeIndex, given VkImageCreateInfo and VmaAllocationCreateInfo.intVMA.flushAllocation(VmaAllocator allocator, VmaAllocation allocation, long offset, long size) Flushes memory of given allocation.intVMA.flushAllocations(VmaAllocator allocator, int allocationCount, VmaAllocation.Ptr allocations, @Nullable LongPtr offsets, @Nullable LongPtr sizes) Flushes memory of given set of allocations.voidVMA.freeMemory(VmaAllocator allocator, @Nullable VmaAllocation allocation) Frees memory previously allocated using vmaAllocateMemory(), vmaAllocateMemoryForBuffer(), or vmaAllocateMemoryForImage().voidVMA.freeMemoryPages(VmaAllocator allocator, long allocationCount, VmaAllocation.Ptr pAllocations) Frees memory and destroys multiple allocations.voidVMA.freeStatsString(VmaAllocator allocator, @Nullable BytePtr pStatsString) voidVMA.getAllocationInfo(VmaAllocator allocator, VmaAllocation allocation, IVmaAllocationInfo pAllocationInfo) Returns current information about specified allocation.voidVMA.getAllocationInfo2(VmaAllocator allocator, VmaAllocation allocation, IVmaAllocationInfo2 pAllocationInfo) Returns extended information about specified allocation.voidVMA.getAllocationMemoryProperties(VmaAllocator allocator, VmaAllocation allocation, IntPtr pFlags) Given an allocation, returns Property Flags of its memory type.voidVMA.getAllocatorInfo(VmaAllocator allocator, IVmaAllocatorInfo pAllocatorInfo) Returns information about existingVmaAllocatorobject - handle to Vulkan device etc.voidVMA.getHeapBudgets(VmaAllocator allocator, IVmaBudget pBudgets) Retrieves information about current memory usage and budget for all memory heaps.voidVMA.getMemoryProperties(VmaAllocator allocator, PointerPtr ppPhysicalDeviceMemoryProperties) PhysicalDeviceMemoryProperties are fetched from physicalDevice by the allocator.voidVMA.getMemoryTypeProperties(VmaAllocator allocator, int memoryTypeIndex, IntPtr pFlags) Given Memory Type Index, returns Property Flags of this memory type.intVMA.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.voidVMA.getPhysicalDeviceProperties(VmaAllocator allocator, PointerPtr ppPhysicalDeviceProperties) PhysicalDeviceProperties are fetched from physicalDevice by the allocator.voidVMA.getPoolName(VmaAllocator allocator, VmaPool pool, PointerPtr ppName) Retrieves name of a custom pool.voidVMA.getPoolStatistics(VmaAllocator allocator, VmaPool pool, IVmaStatistics pPoolStats) Retrieves statistics of existingVmaPoolobject.intVMA.invalidateAllocation(VmaAllocator allocator, VmaAllocation allocation, long offset, long size) Invalidates memory of given allocation.intVMA.invalidateAllocations(VmaAllocator allocator, int allocationCount, VmaAllocation.Ptr allocations, @Nullable LongPtr offsets, @Nullable LongPtr sizes) Invalidates memory of given set of allocations.intVMA.mapMemory(VmaAllocator allocator, VmaAllocation allocation, PointerPtr ppData) Maps memory represented by given allocation and returns pointer to it.voidVMA.setAllocationName(VmaAllocator allocator, VmaAllocation allocation, @Nullable BytePtr pName) Sets pName in given allocation to new value.voidVMA.setAllocationUserData(VmaAllocator allocator, VmaAllocation allocation, @NotNull MemorySegment pUserData) Sets pUserData in given allocation to new value.voidVMA.setCurrentFrameIndex(VmaAllocator allocator, int frameIndex) Sets index of the current frame.voidVMA.setPoolName(VmaAllocator allocator, VmaPool pool, @Nullable BytePtr pName) Sets name of a custom pool.voidVMA.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 recordRepresents a pointer toVmaAllocatorhandle(s) in native memory.Methods in club.doki7.vma.handle that return VmaAllocatorModifier and TypeMethodDescription@Nullable VmaAllocatorVmaAllocator.Ptr.read()@Nullable VmaAllocatorVmaAllocator.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.PtrVmaAllocator.Ptr.allocate(Arena arena, @Nullable VmaAllocator @NotNull [] values) static VmaAllocator.PtrVmaAllocator.Ptr.allocateV(Arena arena, @Nullable VmaAllocator value0, @Nullable VmaAllocator... values) voidVmaAllocator.Ptr.write(long index, @Nullable VmaAllocator value) voidVmaAllocator.Ptr.write(@Nullable VmaAllocator value) voidVmaAllocator.Ptr.write(@Nullable VmaAllocator[] values) voidVmaAllocator.Ptr.writeV(@Nullable VmaAllocator value0, @Nullable VmaAllocator... values) Method parameters in club.doki7.vma.handle with type arguments of type VmaAllocatorModifier and TypeMethodDescriptionstatic VmaAllocator.PtrVmaAllocator.Ptr.allocate(Arena arena, @NotNull Collection<@Nullable VmaAllocator> values)