Only expose the image view for textures in the scene data

This commit is contained in:
Guillaume Meunier
2024-01-28 11:33:34 +01:00
parent 9132e3040e
commit 11b5d501b8
3 changed files with 11 additions and 5 deletions
+2 -1
View File
@@ -65,7 +65,7 @@ struct scene_data
struct texture
{
std::shared_ptr<image> image_{};
std::shared_ptr<vk::raii::ImageView> image_view;
sampler_info sampler;
};
@@ -108,6 +108,7 @@ struct scene_data
std::shared_ptr<buffer_allocation> buffer;
size_t offset;
// The descriptor set is managed by the scene renderer, it is updated whenever ds_dirty is true
// Bindings 0-4: textures
// Binding 5: uniform buffer
std::shared_ptr<vk::raii::DescriptorSet> ds;