This commit is contained in:
Marcin Mikołajczyk 2025-05-30 21:06:48 +01:00
parent 4019319d92
commit 7e9de37fe4

View File

@ -85,8 +85,10 @@ static vk::ImageUsageFlags ImageUsageFlags(const ImageInfo& info) {
// involve re-creating the resource with a new configuration and copying previous content // involve re-creating the resource with a new configuration and copying previous content
// into it. However, for now, we will set storage usage for all images (if the format // into it. However, for now, we will set storage usage for all images (if the format
// allows), sacrificing a bit of performance. Note use of ExtendedUsage flag set by default. // allows), sacrificing a bit of performance. Note use of ExtendedUsage flag set by default.
if (!info.IsBlockCoded()) {
usage |= vk::ImageUsageFlagBits::eStorage; usage |= vk::ImageUsageFlagBits::eStorage;
} }
}
return usage; return usage;
} }