mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-10-14 21:23:10 +03:00
Initial commit
This commit is contained in:
29
desktop/graphics/vulkan_texture_descriptors.h
Normal file
29
desktop/graphics/vulkan_texture_descriptors.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#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
|
Reference in New Issue
Block a user