mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-24 21:06:55 +02:00
Support reciprocal ABGR sampled views
This commit is contained in:
@@ -84,6 +84,10 @@ namespace Libs::Graphics {
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
if (image_format == VK_FORMAT_R16G16B16A16_SFLOAT && view_format == image_format &&
|
||||
swizzle == DstSel(7, 6, 5, 4)) {
|
||||
return VulkanImage::VIEW_ABGR;
|
||||
}
|
||||
if (IsBgraToRgbaSampledView(image_format, view_format) && swizzle == DstSel(6, 5, 4, 7)) {
|
||||
return VulkanImage::VIEW_BGRA_TO_RGBA;
|
||||
}
|
||||
|
||||
@@ -1437,6 +1437,10 @@ VkImageView TextureCache::GetRenderTargetSampledView(GraphicContext* c
|
||||
components = {VK_COMPONENT_SWIZZLE_B, VK_COMPONENT_SWIZZLE_G, VK_COMPONENT_SWIZZLE_R,
|
||||
VK_COMPONENT_SWIZZLE_A};
|
||||
break;
|
||||
case VulkanImage::VIEW_ABGR:
|
||||
components = {VK_COMPONENT_SWIZZLE_A, VK_COMPONENT_SWIZZLE_B, VK_COMPONENT_SWIZZLE_G,
|
||||
VK_COMPONENT_SWIZZLE_R};
|
||||
break;
|
||||
default:
|
||||
EXIT("TextureCache: unsupported render-target sampled view variant: %d\n", variant);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user