diff options
| author | 2015-08-25 06:46:11 -0300 | |
|---|---|---|
| committer | 2015-09-07 16:46:31 -0300 | |
| commit | 2011f9a042bfb51124550462f64a2106e59e11df (patch) | |
| tree | 7380029505ac8c21ab77aecb9ce3b9145b80705a | |
| parent | Shader Debugger: Highlight current instruction instead of focusing (diff) | |
| download | yuzu-2011f9a042bfb51124550462f64a2106e59e11df.tar.gz yuzu-2011f9a042bfb51124550462f64a2106e59e11df.tar.xz yuzu-2011f9a042bfb51124550462f64a2106e59e11df.zip | |
Shader Debugger: Allow editing of input vertex data
| -rw-r--r-- | src/citra_qt/debugger/graphics_vertex_shader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp index f01be71cc..d48b3294b 100644 --- a/src/citra_qt/debugger/graphics_vertex_shader.cpp +++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp | |||
| @@ -518,6 +518,8 @@ void GraphicsVertexShaderWidget::OnResumed() { | |||
| 518 | 518 | ||
| 519 | void GraphicsVertexShaderWidget::OnInputAttributeChanged(int index) { | 519 | void GraphicsVertexShaderWidget::OnInputAttributeChanged(int index) { |
| 520 | float value = input_data[index]->text().toFloat(); | 520 | float value = input_data[index]->text().toFloat(); |
| 521 | input_vertex.attr[index / 4][index % 4] = Pica::float24::FromFloat32(value); | ||
| 522 | // Re-execute shader with updated value | ||
| 521 | Reload(); | 523 | Reload(); |
| 522 | } | 524 | } |
| 523 | 525 | ||