diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-07-11 00:50:27 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-07-11 00:50:27 +0200 |
| commit | 23e6a58d59b7a11cb8bdb7aa61d3c534c02027e7 (patch) | |
| tree | aa62fe9d75f4b82a0caee70d3bf14fa1e0b617b2 /include/vk-api.hpp | |
| parent | d676e9a2fb533494d1558483e8266605b1d5b632 (diff) | |
Refactor includes & improve compile time
Add platform defined to CMakeLists.txt
Diffstat (limited to 'include/vk-api.hpp')
| -rw-r--r-- | include/vk-api.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/vk-api.hpp b/include/vk-api.hpp index c2ed9bd..2c00b40 100644 --- a/include/vk-api.hpp +++ b/include/vk-api.hpp @@ -4,11 +4,14 @@ #include <vector> #include <cassert> -#include "vk-context.hpp" +#include <vulkan/vulkan.h> + +using VmaAllocation = struct VmaAllocation_T*; +using VmaMemoryUsage = enum VmaMemoryUsage; struct buffer { VmaAllocation alloc; - VmaAllocationInfo alloc_info; + void* device_ptr; VkBuffer handle; size_t size; VkDeviceAddress device_address; @@ -27,7 +30,7 @@ struct image { VkImage handle; VkImageView view; VmaAllocation alloc; - VmaAllocationInfo alloc_info; + void* device_ptr; VkImageSubresourceRange subresource_range; VkFormat format; VkExtent3D size; @@ -102,6 +105,7 @@ struct global_descriptor { }; class window; +class vkcontext; class vkapi { public: |
