mirror of https://github.com/PCSX2/pcsx2.git
gsdx-d3d11: Add equality check for GSTexture11
This commit is contained in:
parent
c2fd67b1cb
commit
07989a0a17
|
@ -274,3 +274,8 @@ GSTexture11::operator ID3D11DepthStencilView*()
|
||||||
|
|
||||||
return m_dsv;
|
return m_dsv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GSTexture11::Equal(GSTexture11* tex)
|
||||||
|
{
|
||||||
|
return tex && m_texture == tex->m_texture;
|
||||||
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ public:
|
||||||
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0);
|
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0);
|
||||||
void Unmap();
|
void Unmap();
|
||||||
bool Save(const std::string& fn, bool dds = false);
|
bool Save(const std::string& fn, bool dds = false);
|
||||||
|
bool Equal(GSTexture11* tex);
|
||||||
|
|
||||||
operator ID3D11Texture2D*();
|
operator ID3D11Texture2D*();
|
||||||
operator ID3D11ShaderResourceView*();
|
operator ID3D11ShaderResourceView*();
|
||||||
|
|
Loading…
Reference in New Issue