Неопределенная ссылка на IOSurface в металле - PullRequest
0 голосов
/ 09 декабря 2018

Я пытаюсь инициализировать 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 Ответ

0 голосов
/ 09 декабря 2018

Я должен был включить iosframework в xcode.

...