소스 검색

Shader Debugger: Allow editing of input vertex data

Yuri Kunde Schlesner 11 년 전
부모
커밋
2011f9a042
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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) {
 void GraphicsVertexShaderWidget::OnInputAttributeChanged(int index) {
     float value = input_data[index]->text().toFloat();
     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();
     Reload();
 }
 }