mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-22 14:28:57 +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
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue