summaryrefslogtreecommitdiffstats
path: root/src/video_core/debug_utils/debug_utils.cpp
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2015-07-12 01:57:59 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2015-08-16 14:12:11 +0200
commit33ba604fd903d9511a414a54b91ebe818df338ef (patch)
tree578ee82515c8e819e6468af4ef5552ee028e472b /src/video_core/debug_utils/debug_utils.cpp
parentPica/DebugUtils: Include uniform information into shader dumps. (diff)
downloadyuzu-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 'src/video_core/debug_utils/debug_utils.cpp')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp3
1 files changed, 1 insertions, 2 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) {