From 491c10ec96e4cb58724f0768a76e0cece63f2b07 Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Fri, 4 Aug 2017 17:56:24 +0200 Subject: VideoBackends: Use VideoCommon shader generators for efb2tex copies. This will generate one shader per copy format. For now, it is the same shader with the colmat hard coded. So it should already improve the GPU performance a bit, but a rewrite of the shader generator is suggested. Half of the patch is done by linkmauve1: VideoCommon: Reorganise the shader writes. --- Source/Core/VideoBackends/D3D/TextureCache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/D3D/TextureCache.cpp') diff --git a/Source/Core/VideoBackends/D3D/TextureCache.cpp b/Source/Core/VideoBackends/D3D/TextureCache.cpp index 7d9d62cf54..a7eab7c041 100644 --- a/Source/Core/VideoBackends/D3D/TextureCache.cpp +++ b/Source/Core/VideoBackends/D3D/TextureCache.cpp @@ -222,7 +222,8 @@ TextureCache::~TextureCache() void TextureCache::CopyEFBToCacheEntry(TCacheEntry* entry, bool is_depth_copy, const EFBRectangle& src_rect, bool scale_by_half, - unsigned int cbuf_id, const float* colmat) + unsigned int cbuf_id, const float* colmat, + EFBCopyFormat dst_format, bool is_intensity) { auto* destination_texture = static_cast(entry->texture.get()); -- cgit v1.2.3