Ejemplo n.º 1
0
        public void CreateFromOpenGLMaskTest()
        {
            TestRuntime.AssertSystemVersion(ApplePlatform.MacOSX, 12, 0);
            var openGLMask = CGDisplay.GetOpenGLDisplayMask(CGDisplay.MainDisplayID);

            Assert.DoesNotThrow(() => {
                using var displayLink = CVDisplayLink.CreateFromOpenGLMask((uint)openGLMask);
                Assert.NotNull(displayLink, "Not null");
            }, "Throws");
        }