标签: ios objective-c
我有一个MTL纹理https://developer.apple.com/documentation/metal/mtltexture/1515339-width?language=objc
id<MTLTexture> mtlTexture = (__bridge id<MTLTexture>)texPtr; int width = mtlTexture.width
我想获取它的宽度,但是它说找不到属性宽度。
我是iOS和Objective C的初学者。