#ifndef DESCRIPTORPOOL_HPP #define DESCRIPTORPOOL_HPP #include "device.hpp" #include #include namespace Vulkan::Core { /// /// C++ wrapper class for a Vulkan descriptor pool. /// /// This class manages the lifetime of a Vulkan descriptor pool. /// class DescriptorPool { public: DescriptorPool() noexcept = default; /// /// Create the descriptor pool. /// /// @param device Vulkan device /// /// @throws ls::vulkan_error if object creation fails. /// DescriptorPool(const Device& device); /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->descriptorPool; } /// Trivially copyable, moveable and destructible DescriptorPool(const DescriptorPool&) noexcept = default; DescriptorPool& operator=(const DescriptorPool&) noexcept = default; DescriptorPool(DescriptorPool&&) noexcept = default; DescriptorPool& operator=(DescriptorPool&&) noexcept = default; ~DescriptorPool() = default; private: std::shared_ptr descriptorPool; }; } #endif // DESCRIPTORPOOL_HPP