mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-17 15:09:03 +02:00
Fixing building issues again, dammed binding.
This commit is contained in:
parent
0d999519a4
commit
d19229b179
1 changed files with 2 additions and 2 deletions
|
|
@ -2130,14 +2130,14 @@ ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewI
|
|||
!info.IsRenderTarget() &&
|
||||
(ImageUsageFlags(format_info, format) & VK_IMAGE_USAGE_SAMPLED_BIT)) {
|
||||
// Skip small textures (likely atlases, lookup tables, or integer data)
|
||||
const bool is_likely_atlas = info.size.width <= 1024 || info.size.height <= 1024;
|
||||
const bool is_likely_atlas = image.info.size.width <= 1024 || image.info.size.height <= 1024;
|
||||
const bool is_storage = (ImageUsageFlags(format_info, format) & VK_IMAGE_USAGE_STORAGE_BIT) != 0;
|
||||
|
||||
// Only reinterpret large textures that are NOT storage and NOT likely atlases
|
||||
if (!is_storage && !is_likely_atlas) {
|
||||
view_format = VK_FORMAT_R32_SFLOAT;
|
||||
LOG_DEBUG(Render_Vulkan, "Reinterpreting R32_UINT→R32_SFLOAT for {}x{} texture",
|
||||
info.size.width, info.size.height);
|
||||
image.info.size.width, image.info.size.height);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue