mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
Move all core types into namespaces (#1886)
* Reorganize namespaces - Most types are now moved into the `melonDS` namespace - Only good chance to do this for a while, since a big refactor is next * Fix the build
This commit is contained in:

committed by
GitHub

parent
651b0f680c
commit
346dd4006e
16
src/GPU.h
16
src/GPU.h
@ -29,19 +29,11 @@
|
||||
#include "GPU_OpenGL.h"
|
||||
#endif
|
||||
|
||||
|
||||
namespace GPU3D
|
||||
namespace melonDS
|
||||
{
|
||||
class GPU3D;
|
||||
}
|
||||
|
||||
namespace ARMJIT
|
||||
{
|
||||
class ARMJIT;
|
||||
}
|
||||
|
||||
namespace Melon
|
||||
{
|
||||
static constexpr u32 VRAMDirtyGranularity = 512;
|
||||
class GPU;
|
||||
|
||||
@ -75,7 +67,7 @@ struct RenderSettings
|
||||
class GPU
|
||||
{
|
||||
public:
|
||||
GPU(ARMJIT::ARMJIT& jit) noexcept;
|
||||
GPU(ARMJIT& jit) noexcept;
|
||||
~GPU() noexcept;
|
||||
void Reset() noexcept;
|
||||
void Stop() noexcept;
|
||||
@ -544,7 +536,7 @@ public:
|
||||
|
||||
void SyncDirtyFlags() noexcept;
|
||||
|
||||
ARMJIT::ARMJIT& JIT;
|
||||
ARMJIT& JIT;
|
||||
u16 VCount = 0;
|
||||
u16 TotalScanlines = 0;
|
||||
u16 DispStat[2] {};
|
||||
@ -590,7 +582,7 @@ public:
|
||||
|
||||
GPU2D::Unit GPU2D_A;
|
||||
GPU2D::Unit GPU2D_B;
|
||||
GPU3D::GPU3D GPU3D {};
|
||||
melonDS::GPU3D GPU3D {};
|
||||
|
||||
NonStupidBitField<128*1024/VRAMDirtyGranularity> VRAMDirty[9] {};
|
||||
VRAMTrackingSet<512*1024, 16*1024> VRAMDirty_ABG {};
|
||||
|
Reference in New Issue
Block a user