mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-06 14:09:58 +00:00
[TEST] Smolios forever
This commit is contained in:
@@ -212,7 +212,11 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) {
|
|||||||
return device.IsFormatSupported(view_format, VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT,
|
return device.IsFormatSupported(view_format, VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT,
|
||||||
FormatType::Optimal);
|
FormatType::Optimal);
|
||||||
});
|
});
|
||||||
if (has_storage_compatible_view) {
|
const bool storage_allowed_for_samples =
|
||||||
|
image_ci.samples == VK_SAMPLE_COUNT_1_BIT ||
|
||||||
|
(device.GetStorageImageSampleCounts() &
|
||||||
|
static_cast<VkSampleCountFlags>(image_ci.samples)) != 0;
|
||||||
|
if (has_storage_compatible_view && storage_allowed_for_samples) {
|
||||||
image_ci.usage |= VK_IMAGE_USAGE_STORAGE_BIT;
|
image_ci.usage |= VK_IMAGE_USAGE_STORAGE_BIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -887,6 +887,10 @@ FN_MAX_LIMIT_LIST
|
|||||||
|
|
||||||
u64 GetDeviceMemoryUsage() const;
|
u64 GetDeviceMemoryUsage() const;
|
||||||
|
|
||||||
|
VkSampleCountFlags GetStorageImageSampleCounts() const {
|
||||||
|
return properties.properties.limits.storageImageSampleCounts;
|
||||||
|
}
|
||||||
|
|
||||||
u32 GetSetsPerPool() const {
|
u32 GetSetsPerPool() const {
|
||||||
return sets_per_pool;
|
return sets_per_pool;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user