pub unsafe extern "C-unwind" fn CVMetalTextureCacheCreate(
allocator: Option<&CFAllocator>,
cache_attributes: Option<&CFDictionary>,
metal_device: &ProtocolObject<dyn MTLDevice>,
texture_attributes: Option<&CFDictionary>,
cache_out: NonNull<*mut CVMetalTextureCache>,
) -> CVReturnAvailable on crate feature
CVReturn and crate feature objc2 and crate feature objc2-metal and crate feature CVMetalTextureCache and non-watchOS only.Expand description
Creates a new Texture Cache.
Parameter allocator: The CFAllocatorRef to use for allocating the cache. May be NULL.
Parameter cacheAttributes: A CFDictionaryRef containing the attributes of the cache itself. May be NULL.
Parameter metalDevice: The Metal device for which the texture objects will be created.
Parameter textureAttributes: A CFDictionaryRef containing the attributes to be used for creating the CVMetalTexture objects. May be NULL.
Parameter cacheOut: The newly created texture cache will be placed here
Returns: Returns kCVReturnSuccess on success