标题: Memory Wave: I Balanced My Mental Well-being [打印本页] 作者: MadelaineA 时间: 7 天前 02:43标题: Memory Wave: I Balanced My Mental Well-being
Simple to combine Vulkan memory allocation library. It requires plenty of boilerplate code, similar to every little thing else in Vulkan, because it's a low-degree and high-efficiency API. There's extra level of indirection: VkDeviceMemory is allocated separately from creating VkBuffer/VkImage and they have to be certain together. Driver should be queried for supported memory heaps and memory sorts. Completely different GPU vendors present various kinds of it. It is recommended to allocate larger chunks of memory and assign elements of them to specific sources, as there's a restrict on maximum variety of memory blocks that can be allocated. 1. Capabilities that assist to decide on appropriate and optimum memory type based mostly on intended usage of the memory. Required or preferred traits of the memory are expressed using higher-degree description comparing to Vulkan flags. Library retains observe of allocated Memory Wave Experience blocks, used and unused ranges inside them, finds finest matching unused ranges for new allocations, respects all the principles of alignment and buffer/picture granularity.