xash3d-fwgs/ref/vk/vk_devmem.h
2023-02-16 10:30:31 -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);