GS: Add const to GSDirtyRect functions

This commit is contained in:
Stenzek 2023-01-02 23:13:47 +10:00 committed by refractionpcsx2
parent c60583c6bb
commit 3ffa5eb613
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ GSDirtyRect::GSDirtyRect(GSVector4i& r, u32 psm, u32 bw) :
{
}
GSVector4i GSDirtyRect::GetDirtyRect(GIFRegTEX0& TEX0)
GSVector4i GSDirtyRect::GetDirtyRect(GIFRegTEX0& TEX0) const
{
GSVector4i _r;
@ -55,7 +55,7 @@ GSVector4i GSDirtyRect::GetDirtyRect(GIFRegTEX0& TEX0)
//
GSVector4i GSDirtyRectList::GetDirtyRect(GIFRegTEX0& TEX0, const GSVector2i& size)
GSVector4i GSDirtyRectList::GetDirtyRect(GIFRegTEX0& TEX0, const GSVector2i& size) const
{
if (!empty())
{

View File

@ -26,13 +26,13 @@ public:
GSDirtyRect();
GSDirtyRect(GSVector4i& r, u32 psm, u32 bw);
GSVector4i GetDirtyRect(GIFRegTEX0& TEX0);
GSVector4i GetDirtyRect(GIFRegTEX0& TEX0) const;
};
class GSDirtyRectList : public std::vector<GSDirtyRect>
{
public:
GSDirtyRectList() {}
GSVector4i GetDirtyRect(GIFRegTEX0& TEX0, const GSVector2i& size);
GSVector4i GetDirtyRect(GIFRegTEX0& TEX0, const GSVector2i& size) const;
GSVector4i GetDirtyRectAndClear(GIFRegTEX0& TEX0, const GSVector2i& size);
};