summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-03-04 20:12:25 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-03-04 20:14:49 +0100
commit5213f702307e43520ad5f264e613acdfec597077 (patch)
tree038455c37e70b4bfeb2bc2085fe131df0cd06dac /src/video_core/renderer_vulkan
parentrenderer_opengl: Swizzle BGR textures on copy (diff)
downloadyuzu-5213f702307e43520ad5f264e613acdfec597077.tar
yuzu-5213f702307e43520ad5f264e613acdfec597077.tar.gz
yuzu-5213f702307e43520ad5f264e613acdfec597077.tar.bz2
yuzu-5213f702307e43520ad5f264e613acdfec597077.tar.lz
yuzu-5213f702307e43520ad5f264e613acdfec597077.tar.xz
yuzu-5213f702307e43520ad5f264e613acdfec597077.tar.zst
yuzu-5213f702307e43520ad5f264e613acdfec597077.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.h b/src/video_core/renderer_vulkan/vk_texture_cache.h
index b08c23459..3aee27ce0 100644
--- a/src/video_core/renderer_vulkan/vk_texture_cache.h
+++ b/src/video_core/renderer_vulkan/vk_texture_cache.h
@@ -93,6 +93,11 @@ struct TextureCacheRuntime {
// No known Vulkan driver has broken image views
return false;
}
+
+ bool HasNativeBgr() const noexcept {
+ // All known Vulkan drivers can natively handle BGR textures
+ return true;
+ }
};
class Image : public VideoCommon::ImageBase {