renderer: simplify image view cache

This commit is contained in:
nmzik
2026-08-24 01:30:34 +02:00
parent e6ad87072d
commit 6eed46b024
4 changed files with 13 additions and 30 deletions
+1 -10
View File
@@ -8,7 +8,6 @@
#include <compare>
#include <limits>
#include <mutex>
#include <optional>
#include <span>
#include <utility>
@@ -27,14 +26,6 @@ struct CachedImageView {
vk::ImageView view = nullptr;
};
struct ImageViewCache {
ImageViewCache() = default;
KYTY_CLASS_NO_COPY(ImageViewCache);
std::mutex mutex;
std::vector<CachedImageView> views;
};
struct ImageUsage {
bool texture = false;
bool storage = false;
@@ -150,7 +141,7 @@ public:
ImageInfo info;
VulkanImage backing;
ImageViewCache views;
std::vector<CachedImageView> views;
ImageUsage usage;
ImageBinding binding;
bool registered = false;