mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
VideoCommon: Eliminate EFBAccessType enum. Eliminate union and switch statement handler in AsyncRequests.
This commit is contained in:
parent
ca9b34a6d1
commit
63b848ca93
6 changed files with 92 additions and 224 deletions
|
@ -30,14 +30,6 @@ enum class FieldType
|
|||
Even,
|
||||
};
|
||||
|
||||
enum class EFBAccessType
|
||||
{
|
||||
PeekZ,
|
||||
PokeZ,
|
||||
PeekColor,
|
||||
PokeColor
|
||||
};
|
||||
|
||||
class VideoBackendBase
|
||||
{
|
||||
public:
|
||||
|
@ -58,7 +50,12 @@ public:
|
|||
|
||||
void Video_OutputXFB(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks);
|
||||
|
||||
u32 Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 data);
|
||||
void Video_PokeEFBColor(u32 x, u32 y, u32 data);
|
||||
void Video_PokeEFBDepth(u32 x, u32 y, u32 data);
|
||||
|
||||
u32 Video_PeekEFBColor(u32 x, u32 y);
|
||||
u32 Video_PeekEFBDepth(u32 x, u32 y);
|
||||
|
||||
u32 Video_GetQueryResult(PerfQueryType type);
|
||||
u16 Video_GetBoundingBox(int index);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue