mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	pica/shader/interpreter: implement SETEMIT and EMIT
This commit is contained in:
		
							parent
							
								
									46c6973d2b
								
							
						
					
					
						commit
						28128348f2
					
				
					 1 changed files with 16 additions and 0 deletions
				
			
		|  | @ -636,6 +636,22 @@ static void RunInterpreter(const ShaderSetup& setup, UnitState& state, DebugData | ||||||
|                 break; |                 break; | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  |             case OpCode::Id::EMIT: { | ||||||
|  |                 GSEmitter* emitter = state.emitter_ptr; | ||||||
|  |                 ASSERT_MSG(emitter, "Execute EMIT on VS"); | ||||||
|  |                 emitter->Emit(state.registers.output); | ||||||
|  |                 break; | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|  |             case OpCode::Id::SETEMIT: { | ||||||
|  |                 GSEmitter* emitter = state.emitter_ptr; | ||||||
|  |                 ASSERT_MSG(emitter, "Execute SETEMIT on VS"); | ||||||
|  |                 emitter->vertex_id = instr.setemit.vertex_id; | ||||||
|  |                 emitter->prim_emit = instr.setemit.prim_emit != 0; | ||||||
|  |                 emitter->winding = instr.setemit.winding != 0; | ||||||
|  |                 break; | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|             default: |             default: | ||||||
|                 LOG_ERROR(HW_GPU, "Unhandled instruction: 0x%02x (%s): 0x%08x", |                 LOG_ERROR(HW_GPU, "Unhandled instruction: 0x%02x (%s): 0x%08x", | ||||||
|                           (int)instr.opcode.Value().EffectiveOpCode(), |                           (int)instr.opcode.Value().EffectiveOpCode(), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue