2020-02-10 09:33:29 +00:00
|
|
|
#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;
|
|
|
|
|
2020-02-10 11:42:19 +00:00
|
|
|
typedef struct qfv_mappedmemrange_s {
|
|
|
|
qfv_memory_t *memory;
|
|
|
|
VkDeviceSize offset;
|
|
|
|
VkDeviceSize size;
|
|
|
|
} qfv_mappedmemrange_t;
|
|
|
|
|
2020-02-11 00:37:04 +00:00
|
|
|
void QFV_FreeMemory (qfv_memory_t *memory);
|
2020-02-10 11:42:19 +00:00
|
|
|
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);
|
|
|
|
|
2020-02-10 09:33:29 +00:00
|
|
|
#endif//__QF_Vulkan_memory_h
|