yquake2 / ref_vk

Optional Vulkan renderer lib for Yamagi Quake II
Other
47 stars 10 forks source link

Support memory preferences cost logic #24

Closed 0lvin closed 2 years ago

0lvin commented 2 years ago

Port memory preferences cost logic from VMA allocator. https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/

Code selects memory that has more bits simular to asked preferences.

0lvin commented 2 years ago

@devnexen I have ported logic from VMA #23 for select not strictly equal memory to preferred flags. It should select something little bit better that default if device does not have exactly preferred memory types.

I have checked code only with lavapipe for now.