Beispiel #1
0
        public static T AllocInit <T>() where T : struct
        {
            string typeName = typeof(T).Name;
            var    cls      = new ObjCClass(typeName);

            return(cls.AllocInit <T>());
        }
Beispiel #2
0
 public static MTLSamplerDescriptor New() => s_class.AllocInit <MTLSamplerDescriptor>();
        public static MTLCompileOptions New()
        {
            var cls = new ObjCClass("MTLCompileOptions");

            return(cls.AllocInit <MTLCompileOptions>());
        }
 public static MTLTextureDescriptor New() => s_class.AllocInit <MTLTextureDescriptor>();
 public static MTLRenderPassDescriptor New() => s_class.AllocInit <MTLRenderPassDescriptor>();
        public static T AllocInit <T>(string typeName) where T : struct
        {
            var cls = new ObjCClass(typeName);

            return(cls.AllocInit <T>());
        }