首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在金属中未定义对IOSurface的引用

在金属中未定义对IOSurface的引用
EN

Stack Overflow用户
提问于 2018-12-10 00:56:09
回答 1查看 149关注 0票数 0

我正在尝试初始化一个IOSurface,但我得到了对所有属性的未定义引用。

代码语言:javascript
复制
 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);
EN

回答 1

Stack Overflow用户

发布于 2018-12-10 02:51:42

我必须在xcode中包含iosframework。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53694565

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档