/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* vk_surface.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/08 18:57:55 by maldavid #+# #+# */ /* Updated: 2023/12/08 19:08:49 by kbz_8 ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef __MLX_VK_SURFACE__ #define __MLX_VK_SURFACE__ #include #include #include namespace mlx { class MLX_API Surface { public: void create(class Renderer& renderer); void destroy() noexcept; VkSurfaceFormatKHR chooseSwapSurfaceFormat(const std::vector& availableFormats); inline VkSurfaceKHR& operator()() noexcept { return _surface; } inline VkSurfaceKHR& get() noexcept { return _surface; } private: VkSurfaceKHR _surface = VK_NULL_HANDLE; }; } #endif // __MLX_VK_SURFACE__