summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2018-03-25 16:28:24 -0400
committerGravatar GitHub2018-03-25 16:28:24 -0400
commite9315ace9f7f541d251a995ff2d4d3513ddc16c4 (patch)
treeba32de7358ed98e1230c1f522a5c7ba35d7ab19e /src/core
parentMerge pull request #281 from mailwl/sockets-services (diff)
parentGPU: Make the debug_context variable a member of the frontend instead of a gl... (diff)
downloadyuzu-e9315ace9f7f541d251a995ff2d4d3513ddc16c4.tar.gz
yuzu-e9315ace9f7f541d251a995ff2d4d3513ddc16c4.tar.xz
yuzu-e9315ace9f7f541d251a995ff2d4d3513ddc16c4.zip
Merge pull request #273 from Subv/textures
GPU: Added code to unswizzle textures and ported the surface viewer from citra
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 552c8f5ee..ade456cfc 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -13,6 +13,7 @@
13#include "core/memory.h" 13#include "core/memory.h"
14#include "core/perf_stats.h" 14#include "core/perf_stats.h"
15#include "core/telemetry_session.h" 15#include "core/telemetry_session.h"
16#include "video_core/debug_utils/debug_utils.h"
16#include "video_core/gpu.h" 17#include "video_core/gpu.h"
17 18
18class EmuWindow; 19class EmuWindow;
@@ -135,6 +136,14 @@ public:
135 return *app_loader; 136 return *app_loader;
136 } 137 }
137 138
139 void SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context) {
140 debug_context = std::move(context);
141 }
142
143 std::shared_ptr<Tegra::DebugContext> GetGPUDebugContext() const {
144 return debug_context;
145 }
146
138private: 147private:
139 /** 148 /**
140 * Initialize the emulated system. 149 * Initialize the emulated system.
@@ -154,6 +163,8 @@ private:
154 std::unique_ptr<Kernel::Scheduler> scheduler; 163 std::unique_ptr<Kernel::Scheduler> scheduler;
155 std::unique_ptr<Tegra::GPU> gpu_core; 164 std::unique_ptr<Tegra::GPU> gpu_core;
156 165
166 std::shared_ptr<Tegra::DebugContext> debug_context;
167
157 Kernel::SharedPtr<Kernel::Process> current_process; 168 Kernel::SharedPtr<Kernel::Process> current_process;
158 169
159 /// When true, signals that a reschedule should happen 170 /// When true, signals that a reschedule should happen