public Result Initialize(MgApplicationInfo appInfo, string[] enabledLayerNames, string[] enabledExtensionNames) { var instCreateInfo = new MgInstanceCreateInfo { ApplicationInfo = appInfo, EnabledLayerNames = enabledLayerNames, EnabledExtensionNames = enabledExtensionNames, }; return(mEntrypoint.CreateInstance(instCreateInfo, null, out mInstance)); }
public void Initialize(MgApplicationInfo appInfo, string[] enabledLayerNames, string[] enabledExtensionNames) { var instCreateInfo = new MgInstanceCreateInfo { ApplicationInfo = appInfo, EnabledLayerNames = enabledLayerNames, EnabledExtensionNames = enabledExtensionNames, }; var errorCode = mEntrypoint.CreateInstance(instCreateInfo, null, out mInstance); Debug.Assert(errorCode == Result.SUCCESS, errorCode + " != Result.SUCCESS"); }