mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 06:33:35 +00:00
37 lines
1.3 KiB
C++
37 lines
1.3 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* vk_descriptor_pool.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/01/23 18:32:43 by maldavid #+# #+# */
|
|
/* Updated: 2024/01/03 15:27:45 by maldavid ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef __VK_DESCRIPTOR_POOL__
|
|
#define __VK_DESCRIPTOR_POOL__
|
|
|
|
#include <mlx_profile.h>
|
|
#include <volk.h>
|
|
#include <cstddef>
|
|
|
|
namespace mlx
|
|
{
|
|
class DescriptorPool
|
|
{
|
|
public:
|
|
void init(std::size_t n, VkDescriptorPoolSize* size);
|
|
void destroy() noexcept;
|
|
|
|
inline VkDescriptorPool& operator()() noexcept { return _pool; }
|
|
inline VkDescriptorPool& get() noexcept { return _pool; }
|
|
|
|
private:
|
|
VkDescriptorPool _pool = VK_NULL_HANDLE;
|
|
};
|
|
}
|
|
|
|
#endif
|