Axiom.CgPrograms.CgProgram.SelectProfile C# (CSharp) Метод

SelectProfile() защищенный Метод

Internal method which works out which profile to use for this program
protected SelectProfile ( ) : void
Результат void
		protected void SelectProfile()
		{
			selectedProfile = "";
			selectedCgProfile = Cg.CG_PROFILE_UNKNOWN;

            if ( profiles != null )
            {
                for ( int i = 0; i < profiles.Length; i++ )
                {
                    if ( GpuProgramManager.Instance.IsSyntaxSupported( profiles[ i ] ) )
                    {
                        selectedProfile = profiles[ i ];
                        selectedCgProfile = Cg.cgGetProfile( selectedProfile );

                        CgHelper.CheckCgError( "Unable to find Cg profile enum for program " + Name, cgContext );

                        break;
                    }
                }
            }
		}