protected static bool ParseParamIndexedAuto( string parameters, MaterialScriptContext context )
{
// skip this if the program is not supported or could not be found
if ( context.program == null || !context.program.IsSupported )
{
return false;
}
string[] values = parameters.Split( new char[] { ' ', '\t' } );
if ( values.Length != 2 && values.Length != 3 )
{
LogParseError( context, "Invalid param_indexed_auto attribute - expected at 2 or 3 parameters." );
return false;
}
// get start index
int index = int.Parse( values[ 0 ] );
ProcessAutoProgramParam( index, "param_indexed_auto", values, context );
return false;
}