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;
}
}
}
}