Post

Replies

Boosts

Views

Activity

Reply to How to release the texture from CVMetalTextureCacheCreateTextureFromImage created?
Add more info here is the code of CVPixelBuffer    let attributes : [NSObject:AnyObject] = [    kCVPixelBufferCGImageCompatibilityKey : true as AnyObject,    kCVPixelBufferCGBitmapContextCompatibilityKey : true as AnyObject,    kCVPixelBufferIOSurfacePropertiesKey: [     "IOSurfaceOpenGLESFBOCompatibility": true,     "IOSurfaceOpenGLESTextureCompatibility": true,     "IOSurfaceCoreAnimationCompatibility": true     ] as AnyObject   ]       CVPixelBufferCreate(kCFAllocatorDefault,             Int(width), Int(height),             kCVPixelFormatType_420YpCbCr8BiPlanarFullRange,             attributes as CFDictionary,             &pixelBuffer)
Topic: Graphics & Games SubTopic: General Tags:
Sep ’22