From 07989a0a173704007edfa300f6c0727932dda436 Mon Sep 17 00:00:00 2001 From: Kojin Date: Sat, 15 Dec 2018 13:40:03 -0500 Subject: [PATCH] gsdx-d3d11: Add equality check for GSTexture11 --- plugins/GSdx/Renderers/DX11/GSTexture11.cpp | 5 +++++ plugins/GSdx/Renderers/DX11/GSTexture11.h | 1 + 2 files changed, 6 insertions(+) diff --git a/plugins/GSdx/Renderers/DX11/GSTexture11.cpp b/plugins/GSdx/Renderers/DX11/GSTexture11.cpp index 7d19c9d372..85066442ce 100644 --- a/plugins/GSdx/Renderers/DX11/GSTexture11.cpp +++ b/plugins/GSdx/Renderers/DX11/GSTexture11.cpp @@ -274,3 +274,8 @@ GSTexture11::operator ID3D11DepthStencilView*() return m_dsv; } + +bool GSTexture11::Equal(GSTexture11* tex) +{ + return tex && m_texture == tex->m_texture; +} diff --git a/plugins/GSdx/Renderers/DX11/GSTexture11.h b/plugins/GSdx/Renderers/DX11/GSTexture11.h index 570fb614e9..c061118124 100644 --- a/plugins/GSdx/Renderers/DX11/GSTexture11.h +++ b/plugins/GSdx/Renderers/DX11/GSTexture11.h @@ -44,6 +44,7 @@ public: bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0); void Unmap(); bool Save(const std::string& fn, bool dds = false); + bool Equal(GSTexture11* tex); operator ID3D11Texture2D*(); operator ID3D11ShaderResourceView*();