示例#1
0
        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));
        }
示例#2
0
        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");
        }