VideoCommon: Split BBox* functions into common and backend implementation variants

This will allow for some aspects of bounding box to be handled in
VideoCommon instead of individual backends.
This commit is contained in:
Techjar
2021-05-21 21:54:19 -04:00
parent 40a4715074
commit 0f17990137
13 changed files with 48 additions and 29 deletions

View File

@ -854,7 +854,7 @@ void Renderer::SetScissorRect(const MathUtil::Rectangle<int>& rc)
glScissor(rc.left, rc.top, rc.GetWidth(), rc.GetHeight());
}
u16 Renderer::BBoxRead(int index)
u16 Renderer::BBoxReadImpl(int index)
{
// swap 2 and 3 for top/bottom
if (index >= 2)
@ -870,7 +870,7 @@ u16 Renderer::BBoxRead(int index)
return static_cast<u16>(value);
}
void Renderer::BBoxWrite(int index, u16 value)
void Renderer::BBoxWriteImpl(int index, u16 value)
{
s32 swapped_value = value;
if (index >= 2)