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