2020-02-10 09:33:29 +00:00
|
|
|
#ifndef __QF_Vulkan_memory_h
|
|
|
|
#define __QF_Vulkan_memory_h
|
|
|
|
|
2020-02-17 11:29:35 +00:00
|
|
|
#include "QF/darray.h"
|
2020-02-10 09:33:29 +00:00
|
|
|
|
2020-02-10 11:42:19 +00:00
|
|
|
typedef struct qfv_mappedmemrange_s {
|
2020-02-17 11:29:35 +00:00
|
|
|
VkDeviceMemory object;
|
2020-02-10 11:42:19 +00:00
|
|
|
VkDeviceSize offset;
|
|
|
|
VkDeviceSize size;
|
|
|
|
} qfv_mappedmemrange_t;
|
|
|
|
|
2020-02-17 11:29:35 +00:00
|
|
|
typedef struct qfv_mappedmemrangeset_s
|
|
|
|
DARRAY_TYPE (qfv_mappedmemrange_t) qfv_mappedmemrangeset_t;
|
|
|
|
|
|
|
|
struct qfv_device_s;
|
|
|
|
|
|
|
|
void *QFV_MapMemory (struct qfv_device_s *device, VkDeviceMemory object,
|
2020-02-10 11:42:19 +00:00
|
|
|
VkDeviceSize offset, VkDeviceSize size);
|
2020-02-17 11:29:35 +00:00
|
|
|
void QFV_FlushMemory (struct qfv_device_s *device,
|
|
|
|
qfv_mappedmemrangeset_t *ranges);
|
2020-02-10 11:42:19 +00:00
|
|
|
|
2020-02-10 09:33:29 +00:00
|
|
|
#endif//__QF_Vulkan_memory_h
|