From 3d019284e306053a12b09825009f1931efc8a2de Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Mon, 10 Jul 2017 16:11:08 -0400 Subject: [PATCH] [opengles] Update nullability attributes up to beta 3 The single new API is commented until IOSurface bindings are available [1] [1] https://bugzilla.xamarin.com/show_bug.cgi?id=58054 --- src/opengles.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/opengles.cs b/src/opengles.cs index d245a83dfc86..82a680a9b550 100644 --- a/src/opengles.cs +++ b/src/opengles.cs @@ -24,6 +24,7 @@ interface EAGLSharegroup { [iOS (6,0)] [Export ("debugLabel")] + [NullAllowed] string DebugLabel { get; set; } } @@ -41,6 +42,7 @@ interface EAGLContext { bool SetCurrentContext([NullAllowed] EAGLContext context); [Static, Export("currentContext")] + [NullAllowed] EAGLContext CurrentContext { get; } [Export("API")] @@ -51,6 +53,7 @@ interface EAGLContext { [iOS (6,0)] [Export ("debugLabel")] + [NullAllowed] string DebugLabel { get; set; } // @@ -74,6 +77,14 @@ interface EAGLContext { [Since (7,1)] [Export ("multiThreaded")] bool IsMultiThreaded { [Bind ("isMultiThreaded")] get; set; } + +#if false // https://bugzilla.xamarin.com/show_bug.cgi?id=58054 + // IOSurface (EAGLContext) + + [iOS (11,0)] + [Export ("texImageIOSurface:target:internalFormat:width:height:format:type:plane:")] + bool TexImage (IOSurface ioSurface, nuint target, nuint internalFormat, uint width, uint height, nuint format, nuint type, uint plane); +#endif } [Protocol]