我正在尝试初始化一个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);发布于 2018-12-10 02:51:42
我必须在xcode中包含iosframework。
https://stackoverflow.com/questions/53694565
复制相似问题