 |
VulkanMemoryAllocatorGetNewMemoryBlockSize Method |
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.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxprotected virtual uint GetNewMemoryBlockSize(
uint memoryTypeIndex,
uint requestedSize,
int alignment,
int allocatedMemoryBlocksForThisMemoryType,
bool isImage
)
Parameters
- memoryTypeIndex UInt32
- memoryTypeIndex from MemoryAllocateInfo
- requestedSize UInt32
- size of a single allocation that lead to the allocation of new memory block
- alignment Int32
- required memory alignment
- allocatedMemoryBlocksForThisMemoryType Int32
- number of already allocated memory blocks for this memoryTypeIndex
- isImage Boolean
- when true the memory is going to be used for images; when false the memory is going to be used for buffers
Return Value
UInt32size of allocated memory block
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.VulkanMemoryAllocator.GetNewMemoryBlockSize(System.UInt32,System.UInt32,System.Int32,System.Int32,System.Boolean)"]
See Also