Esempio n. 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));
        }
Esempio n. 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");
        }