mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 13:41:33 +01:00
17 lines
424 B
C
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);
|