diff options
Diffstat (limited to 'include/vk-context.hpp')
| -rw-r--r-- | include/vk-context.hpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/vk-context.hpp b/include/vk-context.hpp new file mode 100644 index 0000000..405cd83 --- /dev/null +++ b/include/vk-context.hpp @@ -0,0 +1,40 @@ +#ifndef __VK_CONTEXT_HPP_ +#define __VK_CONTEXT_HPP_ + +#include "vulkan-loader.hpp" +#include "thirdparty/vk_mem_alloc.h" + +class vkcontext { + public: + vkcontext(); + + ~vkcontext(); + + VkInstance instance; + + VkPhysicalDevice physical_device; + VkDevice device; + + VmaAllocator allocator; + + uint32_t queue_index; + VkQueue queue; + + private: + void create_instance(); + + void create_debugger(); + + void create_device(); + + void create_memory_allocator(); + + void select_physical_device(); + + void select_queue(); + + + VkDebugUtilsMessengerEXT debugMessenger; +}; + +#endif // !__VK_CONTEXT_HPP_ |
