https://developer.apple.com/documentation/corevideo/1456774-cvmetaltexturecachecreate
Creates a new texture cache.
새로운 텍스처 캐시를 생성합니다.
func CVMetalTextureCacheCreate(
_ allocator: CFAllocator?,
_ cacheAttributes: CFDictionary?,
_ metalDevice: MTLDevice,
_ textureAttributes: CFDictionary?,
_ cacheOut: UnsafeMutablePointer<CVMetalTextureCache?>
) -> CVReturn
allocator
택스처 캐시 할당에 사용하기 위한 CFAllocator
입니다.
cacheAttributes
캐시의 동작에 대한 옵셔을 구체화하는 딕셔너리입니다. 혹은 기본값 옵션으로 사용하려면 NULL
입니다. 활용할 수 있는 키와 값은 Cache Attributes를 보시기 바랍니다.
Cache Attributes
https://developer.apple.com/documentation/corevideo/cvmetaltexturecache/cache_attributes
metalDevice
캐시가 텍스처 객체를 생성할 메탈 디바이스입니다.
textureAttributes
캐시로부터 텍스처를 생성할 때 옵션을 구체화할 수 있는 딕셔너리입니다. 기본값 옵션을 사용한다면 NULL
입니다.
cacheOut
반환 시점에 새롭게 생성된 텍스처 캐시를 포함합니다.
텍스처 캐시의 생성이 성공적인 시점에서 이 함수는 kCVReturnSuccess
를 반환합니다.