/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* vk_cmd_pool.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/06 18:24:12 by maldavid #+# #+# */ /* Updated: 2023/12/08 19:07:22 by kbz_8 ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef __MLX_VK_CMD_POOL__ #define __MLX_VK_CMD_POOL__ #include #include namespace mlx { class MLX_API CmdPool { public: void init(); void destroy() noexcept; inline VkCommandPool& operator()() noexcept { return _cmd_pool; } inline VkCommandPool& get() noexcept { return _cmd_pool; } private: VkCommandPool _cmd_pool = VK_NULL_HANDLE; }; } #endif // __MLX_VK_CMD_POOL__