首页 文章

未定义的金属IOSurface参考

提问于
浏览
0

我正在尝试初始化IOSurface并且我得到了对所有属性的未定义引用 .

NSDictionary* dict = @{
                           IOSurfacePropertyKeyWidth: [NSNumber numberWithInt:textureWidth],
                           IOSurfacePropertyKeyHeight: [NSNumber numberWithInt:textureHeight],
                           IOSurfacePropertyKeyBytesPerElement: [NSNumber numberWithInt:4],
                           IOSurfacePropertyKeyPixelFormat: [NSNumber numberWithInt:'BGRA'],
                           (NSString*)kIOSurfaceIsGlobal: [NSNumber numberWithBool:YES]
                        };
IOSurfaceRef surface = IOSurfaceCreate((CFDictionaryRef)dict);

1 回答

  • -1

    我必须在xcode中包含iosframework .

相关问题