diff options
| author | 2017-01-27 14:29:10 -0300 | |
|---|---|---|
| committer | 2017-01-27 14:29:10 -0300 | |
| commit | bf14f4be2263b4769e97800b35951717192c2d1c (patch) | |
| tree | 9c1c47f5a05e9907257f620d8426a0cebaf0cf78 /src/citra_qt/debugger/graphics | |
| parent | SDL: Select audio device (#2403) (diff) | |
| parent | VideoCore/Shader: Move entry_point to SetupBatch (diff) | |
| download | yuzu-bf14f4be2263b4769e97800b35951717192c2d1c.tar.gz yuzu-bf14f4be2263b4769e97800b35951717192c2d1c.tar.xz yuzu-bf14f4be2263b4769e97800b35951717192c2d1c.zip | |
Merge pull request #2346 from yuriks/shader-refactor2
More shader refactoring
Diffstat (limited to 'src/citra_qt/debugger/graphics')
| -rw-r--r-- | src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp | 7 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics/graphics_vertex_shader.h | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp index ff2e7e363..f37524190 100644 --- a/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp +++ b/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp | |||
| @@ -18,7 +18,9 @@ | |||
| 18 | #include "citra_qt/util/util.h" | 18 | #include "citra_qt/util/util.h" |
| 19 | #include "video_core/pica.h" | 19 | #include "video_core/pica.h" |
| 20 | #include "video_core/pica_state.h" | 20 | #include "video_core/pica_state.h" |
| 21 | #include "video_core/shader/debug_data.h" | ||
| 21 | #include "video_core/shader/shader.h" | 22 | #include "video_core/shader/shader.h" |
| 23 | #include "video_core/shader/shader_interpreter.h" | ||
| 22 | 24 | ||
| 23 | using nihstro::OpCode; | 25 | using nihstro::OpCode; |
| 24 | using nihstro::Instruction; | 26 | using nihstro::Instruction; |
| @@ -518,8 +520,9 @@ void GraphicsVertexShaderWidget::Reload(bool replace_vertex_data, void* vertex_d | |||
| 518 | info.labels.insert({entry_point, "main"}); | 520 | info.labels.insert({entry_point, "main"}); |
| 519 | 521 | ||
| 520 | // Generate debug information | 522 | // Generate debug information |
| 521 | debug_data = Pica::g_state.vs.ProduceDebugInfo(input_vertex, num_attributes, shader_config, | 523 | Pica::Shader::InterpreterEngine shader_engine; |
| 522 | shader_setup); | 524 | shader_engine.SetupBatch(shader_setup, entry_point); |
| 525 | debug_data = shader_engine.ProduceDebugInfo(shader_setup, input_vertex, num_attributes); | ||
| 523 | 526 | ||
| 524 | // Reload widget state | 527 | // Reload widget state |
| 525 | for (int attr = 0; attr < num_attributes; ++attr) { | 528 | for (int attr = 0; attr < num_attributes; ++attr) { |
diff --git a/src/citra_qt/debugger/graphics/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics/graphics_vertex_shader.h index bedea0bed..3292573f3 100644 --- a/src/citra_qt/debugger/graphics/graphics_vertex_shader.h +++ b/src/citra_qt/debugger/graphics/graphics_vertex_shader.h | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include <QTreeView> | 8 | #include <QTreeView> |
| 9 | #include "citra_qt/debugger/graphics/graphics_breakpoint_observer.h" | 9 | #include "citra_qt/debugger/graphics/graphics_breakpoint_observer.h" |
| 10 | #include "nihstro/parser_shbin.h" | 10 | #include "nihstro/parser_shbin.h" |
| 11 | #include "video_core/shader/debug_data.h" | ||
| 11 | #include "video_core/shader/shader.h" | 12 | #include "video_core/shader/shader.h" |
| 12 | 13 | ||
| 13 | class QLabel; | 14 | class QLabel; |