aboutsummaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics_vertex_shader.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-08-25 06:46:11 -0300
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-09-07 16:46:31 -0300
commit2011f9a042bfb51124550462f64a2106e59e11df (patch)
tree7380029505ac8c21ab77aecb9ce3b9145b80705a /src/citra_qt/debugger/graphics_vertex_shader.cpp
parent2bdf9ede9195ab99252094b6a04cab8eebdaafcc (diff)
Shader Debugger: Allow editing of input vertex data
Diffstat (limited to 'src/citra_qt/debugger/graphics_vertex_shader.cpp')
-rw-r--r--src/citra_qt/debugger/graphics_vertex_shader.cpp2
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 f01be71ccb..d48b3294b3 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() {
void GraphicsVertexShaderWidget::OnInputAttributeChanged(int index) {
float value = input_data[index]->text().toFloat();
+ input_vertex.attr[index / 4][index % 4] = Pica::float24::FromFloat32(value);
+ // Re-execute shader with updated value
Reload();
}