protected static bool ParseParamIndexed( 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 < 3 )
{
LogParseError( context, "Invalid param_indexed attribute - expected at least 3 parameters." );
return false;
}
// get start index
int index = int.Parse( values[ 0 ] );
ProcessManualProgramParam( index, "param_indexed", values, context );
return false;
}