mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-13 12:40:34 +01:00
c7f8a2a8f6
Make struct `vk_devmem_allocation_stats_t` which will be able to store overall stats and stats generic for each usage type. Move Vulkan related devmem allocation arguments into their own type - `vk_devmem_allocate_args_t`. Store `vk_devmem_usage_type_t` inside `vk_devmem_t`, so we can handle deallocations (frees) for each corresponding type aside from overall stats. Make `VK_DevMemAllocateBuffer` and `VK_DevMemAllocateImage` macros which call generic function `VK_DevMemAllocate` with correspoding usage type set. Make function `VK_DevMemUsageTypeString` to be able to get short string of long enum name. |
||
---|---|---|
.. | ||
gl | ||
soft | ||
vk |