/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* vk_instance.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/08 19:03:04 by maldavid #+# #+# */ /* Updated: 2024/01/03 15:26:26 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef __MLX_VK_INSTANCE__ #define __MLX_VK_INSTANCE__ #include #include #include namespace mlx { class Instance { public: void init(); void destroy() noexcept; inline VkInstance& operator()() noexcept { return _instance; } inline VkInstance& get() noexcept { return _instance; } private: std::vector getRequiredExtensions(); VkInstance _instance = VK_NULL_HANDLE; }; } #endif // __MLX_VK_INSTANCE__