diff options
author | Squall-Leonhart <danialhorton@hotmail.com> | 2023-10-15 11:43:48 +0200 |
---|---|---|
committer | Squall-Leonhart <danialhorton@hotmail.com> | 2023-10-15 11:43:48 +0200 |
commit | 7a986d731b55acd2249d10b2f2264c1f61b69208 (patch) | |
tree | 31c28162c33e4ff49c9756185f43128536ee75ff /src/video_core/renderer_vulkan/vk_texture_cache.cpp | |
parent | update shader to confirmed format copy (diff) | |
download | yuzu-7a986d731b55acd2249d10b2f2264c1f61b69208.tar yuzu-7a986d731b55acd2249d10b2f2264c1f61b69208.tar.gz yuzu-7a986d731b55acd2249d10b2f2264c1f61b69208.tar.bz2 yuzu-7a986d731b55acd2249d10b2f2264c1f61b69208.tar.lz yuzu-7a986d731b55acd2249d10b2f2264c1f61b69208.tar.xz yuzu-7a986d731b55acd2249d10b2f2264c1f61b69208.tar.zst yuzu-7a986d731b55acd2249d10b2f2264c1f61b69208.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index f02d3e8b8..3ad144dab 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -1193,6 +1193,11 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im return blit_image_helper.ConvertD16ToR16(dst, src_view); } break; + case PixelFormat::A8B8G8R8_SRGB: + if (src_view.format == PixelFormat::D32_FLOAT) { + return blit_image_helper.ConvertD32FToABGR8(dst, src_view); + } + break; case PixelFormat::A8B8G8R8_UNORM: if (src_view.format == PixelFormat::S8_UINT_D24_UNORM) { return blit_image_helper.ConvertD24S8ToABGR8(dst, src_view); @@ -1204,6 +1209,16 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im return blit_image_helper.ConvertD32FToABGR8(dst, src_view); } break; + case PixelFormat::B8G8R8A8_SRGB: + if (src_view.format == PixelFormat::D32_FLOAT) { + return blit_image_helper.ConvertD32FToBGRA8(dst, src_view); + } + break; + case PixelFormat::B8G8R8A8_UNORM: + if (src_view.format == PixelFormat::D32_FLOAT) { + return blit_image_helper.ConvertD32FToBGRA8(dst, src_view); + } + break; case PixelFormat::R32_FLOAT: if (src_view.format == PixelFormat::D32_FLOAT) { return blit_image_helper.ConvertD32ToR32(dst, src_view); |