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-context.hpp | |
| parent | d676e9a2fb533494d1558483e8266605b1d5b632 (diff) | |
Refactor includes & improve compile time
Add platform defined to CMakeLists.txt
Diffstat (limited to 'include/vk-context.hpp')
| -rw-r--r-- | include/vk-context.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/vk-context.hpp b/include/vk-context.hpp index 29e17d2..7638d07 100644 --- a/include/vk-context.hpp +++ b/include/vk-context.hpp @@ -2,10 +2,9 @@ #define __VK_CONTEXT_HPP_ #include <vector> +#include <vulkan/vulkan.h> -#include "vulkan-loader.hpp" - -#include <vk_mem_alloc.h> +using VmaAllocator = struct VmaAllocator_T*; class vkcontext { public: @@ -36,11 +35,11 @@ class vkcontext { void select_queue(VkQueueFlags queueUsage); - void check_available_instance_layers(std::vector<const char*>& needed_layers); + static void check_available_instance_layers(std::vector<const char*>& needed_layers); - void check_available_instance_extensions(std::vector<const char*>& available_layers, std::vector<const char*>& needed_extensions); + static void check_available_instance_extensions(std::vector<const char*>& available_layers, std::vector<const char*>& needed_extensions); - bool support_required_features(VkPhysicalDevice physical_device); + static bool support_required_features(VkPhysicalDevice physical_device); VkDebugUtilsMessengerEXT debugMessenger; |
