gsdx-d3d11: Add equality check for GSTexture11

This commit is contained in:
Kojin 2018-12-15 13:40:03 -05:00 committed by lightningterror
parent c2fd67b1cb
commit 07989a0a17
2 changed files with 6 additions and 0 deletions

View File

@ -274,3 +274,8 @@ GSTexture11::operator ID3D11DepthStencilView*()
return m_dsv;
}
bool GSTexture11::Equal(GSTexture11* tex)
{
return tex && m_texture == tex->m_texture;
}

View File

@ -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*();