mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	Pica/VertexShader: Implement MAX instructions.
This commit is contained in:
		
							parent
							
								
									aff808b2fd
								
							
						
					
					
						commit
						cd163fb59a
					
				| @ -197,6 +197,15 @@ static void ProcessShaderCode(VertexShaderState& state) { | ||||
|                 break; | ||||
|             } | ||||
| 
 | ||||
|             case Instruction::OpCode::MAX: | ||||
|                 for (int i = 0; i < 4; ++i) { | ||||
|                     if (!swizzle.DestComponentEnabled(i)) | ||||
|                         continue; | ||||
| 
 | ||||
|                     dest[i] = std::max(src1[i], src2[i]); | ||||
|                 } | ||||
|                 break; | ||||
| 
 | ||||
|             case Instruction::OpCode::DP3: | ||||
|             case Instruction::OpCode::DP4: | ||||
|             { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Tony Wasserka
						Tony Wasserka