mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-27 04:59:00 +02:00
[video_core] Properly disable OpenGL, add ENABLE_VULKAN option and allow full-null backend
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
769edbfea3
commit
1ee41c4369
10 changed files with 206 additions and 155 deletions
|
|
@ -87,6 +87,9 @@ target_link_libraries(qt_common PRIVATE gamemode::headers frontend_common)
|
|||
if (NOT APPLE AND ENABLE_OPENGL)
|
||||
target_compile_definitions(qt_common PUBLIC HAS_OPENGL)
|
||||
endif()
|
||||
if (ENABLE_VULKAN)
|
||||
target_compile_definitions(qt_common PUBLIC HAS_VULKAN)
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
if (DEFINED Qt6Gui_PRIVATE_INCLUDE_DIRS)
|
||||
|
|
|
|||
|
|
@ -538,7 +538,9 @@ std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QObject* parent)
|
|||
PAIR(VramUsageMode, Aggressive, tr("Aggressive")),
|
||||
}});
|
||||
translations->insert({Settings::EnumMetadata<Settings::RendererBackend>::Index(), {
|
||||
#ifdef HAS_VULKAN
|
||||
PAIR(RendererBackend, Vulkan, tr("Vulkan")),
|
||||
#endif
|
||||
#ifdef HAS_OPENGL
|
||||
PAIR(RendererBackend, OpenGL_GLSL, tr("OpenGL GLSL")),
|
||||
PAIR(RendererBackend, OpenGL_GLASM, tr("OpenGL GLASM (Assembly Shaders, NVIDIA Only)")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue