[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:
lizzie 2026-03-07 19:40:19 +00:00
parent 769edbfea3
commit 1ee41c4369
10 changed files with 206 additions and 155 deletions

View file

@ -1,7 +1,6 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "video_core/vulkan_common/vulkan_wrapper.h"
#ifdef _WIN32
#include <cstring>
@ -17,11 +16,15 @@
#endif
#include <fmt/core.h>
#ifdef HAS_VULKAN
#include "video_core/vulkan_common/vulkan_wrapper.h"
#include "video_core/vulkan_common/vulkan_instance.h"
#include "video_core/vulkan_common/vulkan_library.h"
#endif
#include "yuzu/startup_checks.h"
void CheckVulkan() {
#ifdef HAS_VULKAN
// Just start the Vulkan loader, this will crash if something is wrong
try {
Vulkan::vk::InstanceDispatch dld;
@ -32,6 +35,7 @@ void CheckVulkan() {
} catch (const Vulkan::vk::Exception& exception) {
fmt::print(stderr, "Failed to initialize Vulkan: {}\n", exception.what());
}
#endif
}
bool CheckEnvVars(bool* is_child) {