diff options
| author | Techjar <tecknojar@gmail.com> | 2021-05-21 21:54:19 -0400 |
|---|---|---|
| committer | Techjar <tecknojar@gmail.com> | 2021-05-22 01:11:57 -0400 |
| commit | 0f17990137e9d32e442b7baf000098af5ffae111 (patch) | |
| tree | 2e468d3d6be404169503f7b35bd23f84e695734b /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 40a47150746a024ad395689d8f1176bd4703beae (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 93f8fa2279..f93d498fc6 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -185,6 +185,21 @@ void Renderer::ReinterpretPixelData(EFBReinterpretType convtype) g_framebuffer_manager->ReinterpretPixelData(convtype); } +u16 Renderer::BBoxRead(int index) +{ + return BBoxReadImpl(index); +} + +void Renderer::BBoxWrite(int index, u16 value) +{ + BBoxWriteImpl(index, value); +} + +void Renderer::BBoxFlush() +{ + BBoxFlushImpl(); +} + u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) { if (type == EFBAccessType::PeekColor) |
