summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2023-02-18 23:42:07 -0800
committerGravatar bunnei2023-06-03 00:05:31 -0700
commit4c38220a644f8292f4915eaabb2f80d3d0badab0 (patch)
treed6a2291e26e3723ec0e3124f9bb117487dd3966c /src/core
parentcore: frontend: Refactor GraphicsContext to its own module. (diff)
downloadyuzu-4c38220a644f8292f4915eaabb2f80d3d0badab0.tar.gz
yuzu-4c38220a644f8292f4915eaabb2f80d3d0badab0.tar.xz
yuzu-4c38220a644f8292f4915eaabb2f80d3d0badab0.zip
android: native: Add support for custom Vulkan driver loading.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/frontend/graphics_context.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/core/frontend/graphics_context.h b/src/core/frontend/graphics_context.h
index 064b19a96..7554c1583 100644
--- a/src/core/frontend/graphics_context.h
+++ b/src/core/frontend/graphics_context.h
@@ -3,8 +3,9 @@
3 3
4#pragma once 4#pragma once
5 5
6#include <optional> 6#include <memory>
7#include <string> 7
8#include "common/dynamic_library.h"
8 9
9namespace Core::Frontend { 10namespace Core::Frontend {
10 11
@@ -24,16 +25,8 @@ public:
24 /// Releases (dunno if this is the "right" word) the context from the caller thread 25 /// Releases (dunno if this is the "right" word) the context from the caller thread
25 virtual void DoneCurrent() {} 26 virtual void DoneCurrent() {}
26 27
27 /// Parameters used to configure custom drivers (used by Android only) 28 /// Gets the GPU driver library (used by Android only)
28 struct CustomDriverParameters { 29 virtual std::shared_ptr<Common::DynamicLibrary> GetDriverLibrary() {
29 std::string hook_lib_dir;
30 std::string custom_driver_dir;
31 std::string custom_driver_name;
32 std::string file_redirect_dir;
33 };
34
35 /// Gets custom driver parameters configured by the frontend (used by Android only)
36 virtual std::optional<CustomDriverParameters> GetCustomDriverParameters() {
37 return {}; 30 return {};
38 } 31 }
39 32