mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
Core: Add Vulkan renderer types
This commit is contained in:
parent
1399e95b77
commit
3cd5b7ae74
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#include "types.h"
|
||||
|
||||
// Contains the information required to create a graphics context in a window.
|
||||
struct WindowInfo
|
||||
|
|
|
@ -24,6 +24,7 @@ public:
|
|||
{
|
||||
None,
|
||||
D3D11,
|
||||
Vulkan,
|
||||
OpenGL,
|
||||
OpenGLES
|
||||
};
|
||||
|
|
|
@ -313,16 +313,16 @@ const char* Settings::GetCPUExecutionModeDisplayName(CPUExecutionMode mode)
|
|||
return s_cpu_execution_mode_display_names[static_cast<u8>(mode)];
|
||||
}
|
||||
|
||||
static std::array<const char*, 3> s_gpu_renderer_names = {{
|
||||
static std::array<const char*, 4> s_gpu_renderer_names = {{
|
||||
#ifdef WIN32
|
||||
"D3D11",
|
||||
#endif
|
||||
"OpenGL", "Software"}};
|
||||
static std::array<const char*, 3> s_gpu_renderer_display_names = {{
|
||||
"Vulkan", "OpenGL", "Software"}};
|
||||
static std::array<const char*, 4> s_gpu_renderer_display_names = {{
|
||||
#ifdef WIN32
|
||||
"Hardware (D3D11)",
|
||||
#endif
|
||||
"Hardware (OpenGL)", "Software"}};
|
||||
"Hardware (Vulkan)", "Hardware (OpenGL)", "Software"}};
|
||||
|
||||
std::optional<GPURenderer> Settings::ParseRendererName(const char* str)
|
||||
{
|
||||
|
|
|
@ -53,6 +53,7 @@ enum class GPURenderer : u8
|
|||
#ifdef WIN32
|
||||
HardwareD3D11,
|
||||
#endif
|
||||
HardwareVulkan,
|
||||
HardwareOpenGL,
|
||||
Software,
|
||||
Count
|
||||
|
|
Loading…
Reference in a new issue