quakeforge/include/QF/Vulkan/memory.h
Bill Currie 29b1d6baf8 Finish up memory stuff
For now, of course.
2020-02-11 09:37:04 +09:00

21 lines
570 B
C

#ifndef __QF_Vulkan_memory_h
#define __QF_Vulkan_memory_h
typedef struct qfv_memory_s {
struct qfv_device_s *device;
VkDeviceMemory object;
} qfv_memory_t;
typedef struct qfv_mappedmemrange_s {
qfv_memory_t *memory;
VkDeviceSize offset;
VkDeviceSize size;
} qfv_mappedmemrange_t;
void QFV_FreeMemory (qfv_memory_t *memory);
void *QFV_MapMemory (qfv_memory_t *memory,
VkDeviceSize offset, VkDeviceSize size);
void QFV_UnmapMemory (qfv_memory_t *memory);
void QFV_FlushMemory (qfv_mappedmemrange_t *ranges, uint32_t numRanges);
#endif//__QF_Vulkan_memory_h