public RegisterProgramFactory ( string syntaxCode, CreateGpuProgramDelegate createFn ) : bool | ||
syntaxCode | string | |
createFn | CreateGpuProgramDelegate | |
return | bool |
public bool RegisterProgramFactory( string syntaxCode, CreateGpuProgramDelegate createFn )
{
if ( !_programMap.ContainsKey( syntaxCode ) )
{
_programMap.Add( syntaxCode, createFn );
return true;
}
return false;
}
/// <summary>