diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-08-24 17:23:02 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-09 16:37:34 +0100 |
commit | 2793619dcef9fb2f97db5f0258ca950e18fe7f13 (patch) | |
tree | 47f0b608ca674d7dce921de2e11b10fc1ca9807a /src/video_core/debug_utils/debug_utils.h | |
parent | fd194d95b0f1522b970a2b77f9ea490fb8c3ef08 (diff) |
citra_qt: Add enhanced texture debugging widgets.
Double-clicking a texture parameter command in the pica command lists will spawn these as a new tab in the pica command list dock area.
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.h')
-rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index bad4c919..51f14f12 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h @@ -192,10 +192,14 @@ void OnPicaRegWrite(u32 id, u32 value); std::unique_ptr<PicaTrace> FinishPicaTracing(); struct TextureInfo { + unsigned int address; int width; int height; int stride; Pica::Regs::TextureFormat format; + + static TextureInfo FromPicaRegister(const Pica::Regs::TextureConfig& config, + const Pica::Regs::TextureFormat& format); }; const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const TextureInfo& info); |