diff options
author | Lioncash <mathew1800@gmail.com> | 2016-12-10 13:51:50 +0100 |
---|---|---|
committer | linkmauve <linkmauve@linkmauve.fr> | 2016-12-11 01:07:27 +0100 |
commit | 963aedd8ccc207d5b65b97bd46b930771f2bda6e (patch) | |
tree | ab238398e6f8a37e4cd105d19dcec54f82ec1bb2 /src/video_core/gpu_debugger.h | |
parent | configure_input: Modernize and cleanup input configuration tab (diff) | |
download | yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.gz yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.bz2 yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.lz yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.xz yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.zst yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/gpu_debugger.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h index 3c6636d66..c1f9b43c2 100644 --- a/src/video_core/gpu_debugger.h +++ b/src/video_core/gpu_debugger.h @@ -28,7 +28,8 @@ public: * @note All methods in this class are called from the GSP thread */ virtual void GXCommandProcessed(int total_command_count) { - const GSP_GPU::Command& cmd = observed->ReadGXCommandHistory(total_command_count - 1); + const Service::GSP::Command& cmd = + observed->ReadGXCommandHistory(total_command_count - 1); LOG_TRACE(Debug_GPU, "Received command: id=%x", (int)cmd.id.Value()); } @@ -48,16 +49,16 @@ public: return; gx_command_history.emplace_back(); - GSP_GPU::Command& cmd = gx_command_history.back(); + Service::GSP::Command& cmd = gx_command_history.back(); - memcpy(&cmd, command_data, sizeof(GSP_GPU::Command)); + memcpy(&cmd, command_data, sizeof(Service::GSP::Command)); ForEachObserver([this](DebuggerObserver* observer) { observer->GXCommandProcessed(static_cast<int>(this->gx_command_history.size())); }); } - const GSP_GPU::Command& ReadGXCommandHistory(int index) const { + const Service::GSP::Command& ReadGXCommandHistory(int index) const { // TODO: Is this thread-safe? return gx_command_history[index]; } @@ -80,5 +81,5 @@ private: std::vector<DebuggerObserver*> observers; - std::vector<GSP_GPU::Command> gx_command_history; + std::vector<Service::GSP::Command> gx_command_history; }; |