mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
EfbInterface: Make efb and perf_values std::arrays
This commit is contained in:
@ -5,6 +5,7 @@
|
|||||||
#include "VideoBackends/Software/EfbInterface.h"
|
#include "VideoBackends/Software/EfbInterface.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <array>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -20,9 +21,9 @@
|
|||||||
|
|
||||||
namespace EfbInterface
|
namespace EfbInterface
|
||||||
{
|
{
|
||||||
static u8 efb[EFB_WIDTH * EFB_HEIGHT * 6];
|
static std::array<u8, EFB_WIDTH * EFB_HEIGHT * 6> efb;
|
||||||
|
|
||||||
static u32 perf_values[PQ_NUM_MEMBERS];
|
static std::array<u32, PQ_NUM_MEMBERS> perf_values;
|
||||||
|
|
||||||
static inline u32 GetColorOffset(u16 x, u16 y)
|
static inline u32 GetColorOffset(u16 x, u16 y)
|
||||||
{
|
{
|
||||||
@ -690,7 +691,7 @@ u32 GetPerfQueryResult(PerfQueryType type)
|
|||||||
|
|
||||||
void ResetPerfQuery()
|
void ResetPerfQuery()
|
||||||
{
|
{
|
||||||
std::memset(perf_values, 0, sizeof(perf_values));
|
perf_values = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
void IncPerfCounterQuadCount(PerfQueryType type)
|
void IncPerfCounterQuadCount(PerfQueryType type)
|
||||||
|
Reference in New Issue
Block a user