Progressia/desktop/graphics/vulkan_texture_descriptors.h
2022-10-09 17:25:45 +03:00

30 lines
583 B
C++

#pragma once
#include <vector>
#include "vulkan_common.h"
#include "vulkan_descriptor_set.h"
namespace progressia {
namespace desktop {
class TextureDescriptors : public DescriptorSetInterface {
private:
constexpr static uint32_t POOL_SIZE = 64;
constexpr static uint32_t SET_NUMBER = 1;
std::vector<VkDescriptorPool> pools;
uint32_t lastPoolCapacity;
void allocatePool();
public:
TextureDescriptors(Vulkan &);
~TextureDescriptors();
VkDescriptorSet addTexture(VkImageView, VkSampler);
};
} // namespace desktop
} // namespace progressia