diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2015-07-12 01:57:59 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2015-08-16 14:12:11 +0200 |
commit | 33ba604fd903d9511a414a54b91ebe818df338ef (patch) | |
tree | 578ee82515c8e819e6468af4ef5552ee028e472b /src/video_core/debug_utils | |
parent | Pica/DebugUtils: Include uniform information into shader dumps. (diff) | |
download | yuzu-33ba604fd903d9511a414a54b91ebe818df338ef.tar yuzu-33ba604fd903d9511a414a54b91ebe818df338ef.tar.gz yuzu-33ba604fd903d9511a414a54b91ebe818df338ef.tar.bz2 yuzu-33ba604fd903d9511a414a54b91ebe818df338ef.tar.lz yuzu-33ba604fd903d9511a414a54b91ebe818df338ef.tar.xz yuzu-33ba604fd903d9511a414a54b91ebe818df338ef.tar.zst yuzu-33ba604fd903d9511a414a54b91ebe818df338ef.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 3 | ||||
-rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index a79d90ef1..ac071790a 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp @@ -111,7 +111,7 @@ void GeometryDumper::Dump() { } -void DumpShader(const Regs::ShaderConfig& config, const State::ShaderSetup& setup, const Regs::VSOutputAttributes* output_attributes) +void DumpShader(const std::string& filename, const Regs::ShaderConfig& config, const State::ShaderSetup& setup, const Regs::VSOutputAttributes* output_attributes) { struct StuffToWrite { u8* pointer; @@ -294,7 +294,6 @@ void DumpShader(const Regs::ShaderConfig& config, const State::ShaderSetup& setu // Write data to file static int dump_index = 0; - std::string filename = std::string("shader_dump") + std::to_string(++dump_index) + std::string(".shbin"); std::ofstream file(filename, std::ios_base::out | std::ios_base::binary); for (auto& chunk : writing_queue) { diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index 1450e5bf3..0b30d7ffa 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h @@ -181,7 +181,8 @@ private: std::vector<Face> faces; }; -void DumpShader(const Regs::ShaderConfig& config, const State::ShaderSetup& setup, const Regs::VSOutputAttributes* output_attributes); +void DumpShader(const std::string& filename, const Regs::ShaderConfig& config, + const State::ShaderSetup& setup, const Regs::VSOutputAttributes* output_attributes); // Utility class to log Pica commands. |