aboutsummaryrefslogtreecommitdiffstats
path: root/include/vk-api.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/vk-api.hpp')
-rw-r--r--include/vk-api.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/vk-api.hpp b/include/vk-api.hpp
new file mode 100644
index 0000000..690b91f
--- /dev/null
+++ b/include/vk-api.hpp
@@ -0,0 +1,25 @@
+#ifndef __VK_API_HPP_
+#define __VK_API_HPP_
+
+#include "vk-context.hpp"
+
+struct Buffer {
+ VmaAllocation alloc;
+ VkBuffer vkbuffer;
+ void* mapped_ptr;
+};
+
+class vkapi {
+ public:
+ vkapi() = default;
+
+ Buffer create_buffer(size_t data_size, VkBufferUsageFlags buffer_usage, VmaMemoryUsage mem_usage);
+ void destroy_buffer(Buffer& buffer);
+
+ // private:
+
+ vkcontext context;
+
+};
+
+#endif // !__VK_API_HPP_