mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 22:00:05 +00:00 
			
		
		
		
	Debugger: Always use interpreter for shader debugging
This commit is contained in:
		
							parent
							
								
									114d6b2f97
								
							
						
					
					
						commit
						a9b7752b9d
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -18,7 +18,9 @@ | |||
| #include "citra_qt/util/util.h" | ||||
| #include "video_core/pica.h" | ||||
| #include "video_core/pica_state.h" | ||||
| #include "video_core/shader/debug_data.h" | ||||
| #include "video_core/shader/shader.h" | ||||
| #include "video_core/shader/shader_interpreter.h" | ||||
| 
 | ||||
| using nihstro::OpCode; | ||||
| using nihstro::Instruction; | ||||
|  | @ -518,9 +520,9 @@ void GraphicsVertexShaderWidget::Reload(bool replace_vertex_data, void* vertex_d | |||
|     info.labels.insert({entry_point, "main"}); | ||||
| 
 | ||||
|     // Generate debug information
 | ||||
|     auto* shader_engine = Pica::Shader::GetEngine(); | ||||
|     shader_engine->SetupBatch(&shader_setup); | ||||
|     debug_data = shader_engine->ProduceDebugInfo(input_vertex, num_attributes, entry_point); | ||||
|     Pica::Shader::InterpreterEngine shader_engine; | ||||
|     shader_engine.SetupBatch(&shader_setup); | ||||
|     debug_data = shader_engine.ProduceDebugInfo(input_vertex, num_attributes, entry_point); | ||||
| 
 | ||||
|     // Reload widget state
 | ||||
|     for (int attr = 0; attr < num_attributes; ++attr) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue