mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-03 09:32:31 +00:00
29b1d6baf8
For now, of course.
21 lines
570 B
C
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
|