http://gitunderground.i2p/archive/Ryujinx/src/branch/master/src/Ryujinx.Graphics.Shader/TextureHandle.cs
( int ) high - 1 : textureBufferIndex ; } return ( textureBufferIndex , samplerBufferIndex ) ; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int PackOffsets ( int cbufOffset0 , int cbufOffset1 , TextureHandleType type ) { return cbufOffset0 | ( cbufOffset1 < < 14 ) | ( ( int ) type < < 28 ) ; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ( int , int , TextureHandleType ) UnpackOffsets ( int handle ) { return ( handle & 0x3fff , ( handle > > 14 ) & 0x3fff , (...