 a7109c767b
			
		
	
	
		a7109c767b
		
			
		
	
	
	
	
		
			
			* Rewrite shader decoding stage * Fix P2R constant buffer encoding * Fix PSET/PSETP * PR feedback * Log unimplemented shader instructions * Implement NOP * Remove using * PR feedback
		
			
				
	
	
		
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			387 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			387 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace Ryujinx.Graphics.Shader.Decoders
 | |
| {
 | |
|     static class BitfieldExtensions
 | |
|     {
 | |
|         public static bool Extract(this int value, int lsb)
 | |
|         {
 | |
|             return ((value >> lsb) & 1) != 0;
 | |
|         }
 | |
| 
 | |
|         public static int Extract(this int value, int lsb, int length)
 | |
|         {
 | |
|             return (value >> lsb) & (int)(uint.MaxValue >> (32 - length));
 | |
|         }
 | |
|     }
 | |
| } |