summaryrefslogtreecommitdiff
path: root/src/common/settings.h
diff options
context:
space:
mode:
authorGravatar lat9nq2021-07-25 15:31:33 -0400
committerGravatar GitHub2021-07-25 15:31:33 -0400
commit09d6cc99435322c5f480eaa2b0967e33f4966ba6 (patch)
tree72cdf06f6b7d77fdf5826104fea691f3ea450f54 /src/common/settings.h
parentconfiguration: Use combobox apply template where possible (diff)
parentMerge pull request #6575 from FernandoS27/new_settings (diff)
downloadyuzu-09d6cc99435322c5f480eaa2b0967e33f4966ba6.tar.gz
yuzu-09d6cc99435322c5f480eaa2b0967e33f4966ba6.tar.xz
yuzu-09d6cc99435322c5f480eaa2b0967e33f4966ba6.zip
Merge branch 'master' into fullscreen-enum
Diffstat (limited to 'src/common/settings.h')
-rw-r--r--src/common/settings.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/common/settings.h b/src/common/settings.h
index fd2a263ec..801bed603 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -24,6 +24,12 @@ enum class RendererBackend : u32 {
24 Vulkan = 1, 24 Vulkan = 1,
25}; 25};
26 26
27enum class ShaderBackend : u32 {
28 GLSL = 0,
29 GLASM = 1,
30 SPIRV = 2,
31};
32
27enum class GPUAccuracy : u32 { 33enum class GPUAccuracy : u32 {
28 Normal = 0, 34 Normal = 0,
29 High = 1, 35 High = 1,
@@ -313,6 +319,9 @@ struct Values {
313 // Renderer 319 // Renderer
314 Setting<RendererBackend> renderer_backend{RendererBackend::OpenGL, "backend"}; 320 Setting<RendererBackend> renderer_backend{RendererBackend::OpenGL, "backend"};
315 BasicSetting<bool> renderer_debug{false, "debug"}; 321 BasicSetting<bool> renderer_debug{false, "debug"};
322 BasicSetting<bool> enable_nsight_aftermath{false, "nsight_aftermath"};
323 BasicSetting<bool> disable_shader_loop_safety_checks{false,
324 "disable_shader_loop_safety_checks"};
316 Setting<int> vulkan_device{0, "vulkan_device"}; 325 Setting<int> vulkan_device{0, "vulkan_device"};
317 326
318 Setting<u16> resolution_factor{1, "resolution_factor"}; 327 Setting<u16> resolution_factor{1, "resolution_factor"};
@@ -336,7 +345,7 @@ struct Values {
336 Setting<bool> accelerate_astc{true, "accelerate_astc"}; 345 Setting<bool> accelerate_astc{true, "accelerate_astc"};
337 Setting<bool> use_vsync{true, "use_vsync"}; 346 Setting<bool> use_vsync{true, "use_vsync"};
338 BasicSetting<bool> disable_fps_limit{false, "disable_fps_limit"}; 347 BasicSetting<bool> disable_fps_limit{false, "disable_fps_limit"};
339 Setting<bool> use_assembly_shaders{false, "use_assembly_shaders"}; 348 Setting<ShaderBackend> shader_backend{ShaderBackend::GLASM, "shader_backend"};
340 Setting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"}; 349 Setting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"};
341 Setting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"}; 350 Setting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"};
342 Setting<bool> use_caches_gc{false, "use_caches_gc"}; 351 Setting<bool> use_caches_gc{false, "use_caches_gc"};