rewriting swapchain/image/allocation parts
[demo] / src / vulkan / allocator.h
diff --git a/src/vulkan/allocator.h b/src/vulkan/allocator.h
new file mode 100644 (file)
index 0000000..dd730e3
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef ALLOCATOR_H_
+#define ALLOCATOR_H_
+
+#include <vulkan/vulkan.h>
+
+VkDeviceMemory vk_allocate(int size);
+void vk_free(VkDeviceMemory gpu_memory);
+
+#endif // ALLOCATOR_H_