diff options
author | Lectem <lectem@gmail.com> | 2015-07-25 22:00:40 +0200 |
---|---|---|
committer | Lectem <lectem@gmail.com> | 2015-07-26 16:23:12 +0200 |
commit | e663751f8b6cc6fd469d3974b3e68e434ebee9db (patch) | |
tree | c48b19af6f1e95671839cf4b6153c5e155b3494c /src/video_core/debug_utils/debug_utils.h | |
parent | citra-qt/command list: monospace font on windows (diff) | |
download | yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.gz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.bz2 yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.lz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.xz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.zst yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.zip |
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.h')
-rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index 3f109dcb7..acb75a4b2 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h @@ -183,21 +183,17 @@ void DumpShader(const u32* binary_data, u32 binary_size, const u32* swizzle_data // Utility class to log Pica commands. struct PicaTrace { - struct Write : public std::pair<u32,u32> { - Write(u32 id, u32 value) : std::pair<u32,u32>(id, value) {} - - u32& Id() { return first; } - const u32& Id() const { return first; } - - u32& Value() { return second; } - const u32& Value() const { return second; } + struct Write { + u16 cmd_id; + u16 mask; + u32 value; }; std::vector<Write> writes; }; void StartPicaTracing(); bool IsPicaTracing(); -void OnPicaRegWrite(u32 id, u32 value); +void OnPicaRegWrite(PicaTrace::Write write); std::unique_ptr<PicaTrace> FinishPicaTracing(); struct TextureInfo { |