mirror of https://github.com/PCSX2/pcsx2.git
GS: Add const to GSDirtyRect functions
This commit is contained in:
parent
c60583c6bb
commit
3ffa5eb613
|
@ -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())
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue