mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	VideoCore: Rename some types to more accurate names
This commit is contained in:
		
							parent
							
								
									bbc7844021
								
							
						
					
					
						commit
						ab6954e942
					
				
					 10 changed files with 21 additions and 21 deletions
				
			
		|  | @ -71,7 +71,7 @@ OutputVertex OutputVertex::FromRegisters(Math::Vec4<float24> output_regs[16], co | |||
|     return ret; | ||||
| } | ||||
| 
 | ||||
| void UnitState::LoadInputVertex(const InputVertex& input, int num_attributes) { | ||||
| void UnitState::LoadInput(const AttributeBuffer& input, int num_attributes) { | ||||
|     // Setup input register table
 | ||||
|     const auto& attribute_register_map = g_state.regs.vs.input_register_map; | ||||
| 
 | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ namespace Pica { | |||
| 
 | ||||
| namespace Shader { | ||||
| 
 | ||||
| struct InputVertex { | ||||
| struct AttributeBuffer { | ||||
|     alignas(16) Math::Vec4<float24> attr[16]; | ||||
| }; | ||||
| 
 | ||||
|  | @ -140,7 +140,7 @@ struct UnitState { | |||
|      * @param input Input vertex into the shader | ||||
|      * @param num_attributes The number of vertex shader attributes to load | ||||
|      */ | ||||
|     void LoadInputVertex(const InputVertex& input, int num_attributes); | ||||
|     void LoadInput(const AttributeBuffer& input, int num_attributes); | ||||
| }; | ||||
| 
 | ||||
| struct ShaderSetup { | ||||
|  |  | |||
|  | @ -668,14 +668,14 @@ void InterpreterEngine::Run(const ShaderSetup& setup, UnitState& state) const { | |||
| } | ||||
| 
 | ||||
| DebugData<true> InterpreterEngine::ProduceDebugInfo(const ShaderSetup& setup, | ||||
|                                                     const InputVertex& input, | ||||
|                                                     const AttributeBuffer& input, | ||||
|                                                     int num_attributes) const { | ||||
|     UnitState state; | ||||
|     DebugData<true> debug_data; | ||||
| 
 | ||||
|     // Setup input register table
 | ||||
|     boost::fill(state.registers.input, Math::Vec4<float24>::AssignToAll(float24::Zero())); | ||||
|     state.LoadInputVertex(input, num_attributes); | ||||
|     state.LoadInput(input, num_attributes); | ||||
|     RunInterpreter(setup, state, debug_data, setup.engine_data.entry_point); | ||||
|     return debug_data; | ||||
| } | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ public: | |||
|      * @param config Configuration object for the shader pipeline | ||||
|      * @return Debug information for this shader with regards to the given vertex | ||||
|      */ | ||||
|     DebugData<true> ProduceDebugInfo(const ShaderSetup& setup, const InputVertex& input, | ||||
|     DebugData<true> ProduceDebugInfo(const ShaderSetup& setup, const AttributeBuffer& input, | ||||
|                                      int num_attributes) const; | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue