xash3d-fwgs/ref_vk/vk_devmem.h
Ivan 'provod' Avdeev 951d382eb6 vk: improve memory allocation logging
print region names, requirements, etc.
also decrease default vulkan device memory allocation size to 64Mb
decrease max vertices to 512k
2022-01-17 22:06:30 -08:00

17 lines
424 B
C

#pragma once
#include "vk_core.h"
qboolean VK_DevMemInit( void );
void VK_DevMemDestroy( void );
typedef struct vk_devmem_s {
VkDeviceMemory device_memory;
uint32_t offset;
void *mapped;
struct { int devmem, block; } priv_;
} vk_devmem_t;
vk_devmem_t VK_DevMemAllocate(const char *name, VkMemoryRequirements req, VkMemoryPropertyFlags props, VkMemoryAllocateFlags flags);
void VK_DevMemFree(const vk_devmem_t *mem);