mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	vertex_shader: Implement FLR instruction.
This commit is contained in:
		
							parent
							
								
									f935130a0f
								
							
						
					
					
						commit
						692a74c09e
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -235,6 +235,15 @@ static void ProcessShaderCode(VertexShaderState& state) { | |||
|                 break; | ||||
|             } | ||||
| 
 | ||||
|             case OpCode::Id::FLR: | ||||
|                 for (int i = 0; i < 4; ++i) { | ||||
|                     if (!swizzle.DestComponentEnabled(i)) | ||||
|                         continue; | ||||
| 
 | ||||
|                     dest[i] = float24::FromFloat32(std::floor(src1[i].ToFloat32())); | ||||
|                 } | ||||
|                 break; | ||||
| 
 | ||||
|             case OpCode::Id::MAX: | ||||
|                 for (int i = 0; i < 4; ++i) { | ||||
|                     if (!swizzle.DestComponentEnabled(i)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue