From 23e6a58d59b7a11cb8bdb7aa61d3c534c02027e7 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 11 Jul 2022 00:50:27 +0200 Subject: Refactor includes & improve compile time Add platform defined to CMakeLists.txt --- include/vk-api.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/vk-api.hpp') 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 #include -#include "vk-context.hpp" +#include + +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: -- cgit v1.3