Browse Source

Shader Debugger: Allow editing of input vertex data

Yuri Kunde Schlesner 11 năm trước cách đây
mục cha
commit
2011f9a042
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/citra_qt/debugger/graphics_vertex_shader.cpp

+ 2 - 0
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();
 }