mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 13:05:45 -04:00
Refactoring settings/support changing GPU renderer at runtime
This commit is contained in:
@ -1,20 +1,33 @@
|
||||
#pragma once
|
||||
#include "types.h"
|
||||
|
||||
enum class GPUBackend
|
||||
enum class GPURenderer
|
||||
{
|
||||
OpenGL
|
||||
HardwareOpenGL
|
||||
};
|
||||
|
||||
struct Settings
|
||||
{
|
||||
Settings();
|
||||
|
||||
GPUBackend gpu_backend = GPUBackend::OpenGL;
|
||||
GPURenderer gpu_renderer = GPURenderer::HardwareOpenGL;
|
||||
u32 gpu_resolution_scale = 1;
|
||||
u32 max_gpu_resolution_scale = 1;
|
||||
bool gpu_vsync = true;
|
||||
|
||||
|
||||
struct DebugSettings
|
||||
{
|
||||
bool show_gpu_state = false;
|
||||
bool show_gpu_renderer_stats = false;
|
||||
bool show_vram = false;
|
||||
bool dump_cpu_to_vram_copies = false;
|
||||
bool dump_vram_to_cpu_copies = false;
|
||||
|
||||
bool show_cdrom_state = false;
|
||||
bool show_spu_state = false;
|
||||
bool show_timers_state = false;
|
||||
bool show_mdec_state = false;
|
||||
} debugging;
|
||||
|
||||
// TODO: Controllers, memory cards, etc.
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user