Axiom.RenderSystems.OpenGL.ATI.PixelShader.GetMachineInst C# (CSharp) Method

GetMachineInst() private method

private GetMachineInst ( int Idx ) : int
Idx int
return int
		int GetMachineInst( int Idx )
		{
			if ( Idx < phase1TEX_mi.Count )
			{
				return (int)phase1TEX_mi[ Idx ];
			}
			else
			{
				Idx -= phase1TEX_mi.Count;
				if ( Idx < phase1ALU_mi.Count )
				{
					return (int)phase1ALU_mi[ Idx ];
				}
				else
				{
					Idx -= phase1ALU_mi.Count;
					if ( Idx < phase2TEX_mi.Count )
					{
						return (int)phase2TEX_mi[ Idx ];
					}
					else
					{
						Idx -= phase2TEX_mi.Count;
						if ( Idx < phase2ALU_mi.Count )
						{
							return (int)phase2ALU_mi[ Idx ];
						}
					}
				}
			}

			return 0;
		}