Click or drag to resize
Ab4d.SharpEngine logo

VulkanMemoryAllocator Methods

The VulkanMemoryAllocator type exposes the following members.

Methods
 NameDescription
Public methodAllocateMemory(Buffer, MemoryPropertyFlags, Boolean, String) 
Public methodAllocateMemory(Image, MemoryPropertyFlags, Boolean, String) 
Public methodAllocateMemory(MemoryRequirements, MemoryPropertyFlags, Boolean, Boolean, String) 
Public methodAllocateMemory(UInt32, UInt32, Int32, Boolean, Boolean, String) 
Public methodAllocateMemory(UInt32, UInt32, Int32, Boolean, Boolean, UInt32, String) 
Protected methodAllocateVulkanMemory AllocateVulkanMemory is a protected virtual method that calls the vkAllocateMemory function. The method can be overwritten to provide custom allocation logic.
Public methodCleanup Cleanup method checks all memory blocks. Memory block is freed when it is empty and freeEmptyMemoryBlocks is true or when it empty for at least EngineRuntimeOptions.FramesCountToReleaseEmptyMemoryBlock frames.
Public methodStatic memberCreate 
Protected methodDispose
(Overrides ComponentBaseDispose(Boolean))
Public methodDumpMemoryAllocations Writes string that that describes the allocated memory to the console (when the application is debugged in Visual Studio the string is written to Output window).
Public methodFreeMemory(VulkanMemoryInfo) 
Public methodFreeMemory(Int32, UInt32, String) 
Protected methodFreeVulkanMemory FreeVulkanMemory is a protected virtual method that calls the vkFreeMemory function. The method can be overwritten to provide custom allocation logic.
Protected methodGetNewMemoryBlockSize GetNewMemoryBlockSize is a protected virtual method that returns the size of the allocated memory block based on the memoryTypeIndex, requestedSize (size of a single allocation that lead to the allocation of new memory block) and allocatedMemoryBlocksForThisMemoryType (number of already allocated memory blocks for this memoryTypeIndex). The method can be overwritten to provide custom size calculation logic.
Public methodGetReportString Gets the string that describes the allocated memory.
Top
See Also