diff options
author | Frederico Linhares <fred@linhares.blue> | 2023-10-30 15:06:56 -0300 |
---|---|---|
committer | Frederico Linhares <fred@linhares.blue> | 2023-10-30 15:06:56 -0300 |
commit | 85337fb5aa1ce63023ddd5e284ae6b2ccdbb5e30 (patch) | |
tree | 16e2538b1039067c9732645f301ae717a8855a49 /src/vk/texture.hpp | |
parent | c4efa865f359c5c9e365d5faa8ae3c88f3657cb7 (diff) |
refa Move texture sampler to texture object
Diffstat (limited to 'src/vk/texture.hpp')
-rw-r--r-- | src/vk/texture.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vk/texture.hpp b/src/vk/texture.hpp index c489e90..22711eb 100644 --- a/src/vk/texture.hpp +++ b/src/vk/texture.hpp @@ -21,12 +21,15 @@ #include "core.hpp" #include "font.hpp" +#include "queue_family.hpp" namespace VK { struct Texture { + QueueFamily *queue_family; + VkImage image; VkSampler sampler; VkImageView view; @@ -34,6 +37,9 @@ struct Texture uint32_t width, height; uint32_t mip_levels; + VkDescriptorPool descriptor_pool; + std::vector<VkDescriptorSet> descriptor_sets; + Texture(Font *font, const char *str); Texture(std::string texture_path); Texture(const char* texture_path); |