CSPspEmu.Core.Cpu.VFpu.VfpuUtils._GetIndices C# (CSharp) Method

_GetIndices() private static method

private static _GetIndices ( VfpuRegisterInfo RegisterInfo ) : int[]
RegisterInfo VfpuRegisterInfo
return int[]
        private static int[] _GetIndices(VfpuRegisterInfo RegisterInfo)
        {
            switch (RegisterInfo.RegisterType)
            {
                case VfpuRegisterType.Cell: return new[] { (int)GetIndexCell(RegisterInfo) };
                case VfpuRegisterType.Vector: return GetIndicesVector(RegisterInfo);
                case VfpuRegisterType.Matrix: return GetIndicesMatrix(RegisterInfo).Compact();
                default:
                    throw (new NotImplementedException(String.Format("Invalid vfpu registry name {0}('{1}')", RegisterInfo.RegisterIndex, RegisterInfo.Name)));
            }
        }