mirror of
				https://github.com/yuzu-emu/yuzu.git
				synced 2025-11-04 08:13:41 +00:00 
			
		
		
		
	vertex_shader: Implement MIN instruction.
This commit is contained in:
		
							parent
							
								
									595fe49a8f
								
							
						
					
					
						commit
						875bd29766
					
				@ -208,6 +208,15 @@ static void ProcessShaderCode(VertexShaderState& state) {
 | 
			
		||||
                }
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
            case OpCode::Id::MIN:
 | 
			
		||||
                for (int i = 0; i < 4; ++i) {
 | 
			
		||||
                    if (!swizzle.DestComponentEnabled(i))
 | 
			
		||||
                        continue;
 | 
			
		||||
 | 
			
		||||
                    dest[i] = std::min(src1[i], src2[i]);
 | 
			
		||||
                }
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
            case OpCode::Id::DP3:
 | 
			
		||||
            case OpCode::Id::DP4:
 | 
			
		||||
            {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user