티스토리 뷰
iOS/Metal
Issue: CVMetalTextureCacheCreateTextureFromImage returns -6660
0zerohyun 2022. 1. 6. 15:20
let attrs = [kCVPixelBufferCGImageCompatibilityKey: kCFBooleanTrue,
kCVPixelBufferCGBitmapContextCompatibilityKey: kCFBooleanTrue,
kCVPixelBufferMetalCompatibilityKey: kCFBooleanTrue] as CFDictionary
CVPixelBufferCreate(kCFAllocatorDefault,
width,
height,
kCVPixelFormatType_32BGRA,
attrs,
&pixelBuffer)
kCVPixelBufferMetalCompatibilityKey: kCFBooleanTrue를 추가하여 해결
'iOS > Metal' 카테고리의 다른 글
Metal: MTKView 해상도 변경하기 (0) | 2022.01.06 |
---|---|
Metal: 현재 스크린에 렌더링된 결과 가져오기 (0) | 2022.01.06 |
Issue: [CIImage initWithMTLTexture:options:] texture type must include MTLTextureUsageShaderRead. (0) | 2022.01.06 |
Metal: Metal로 카메라 렌더링하기 요약 (0) | 2022.01.06 |
Metal: Metal 기본 개념 (0) | 2022.01.06 |