Function CVMetalBufferCacheCreate

Source
pub unsafe extern "C-unwind" fn CVMetalBufferCacheCreate(
    allocator: Option<&CFAllocator>,
    cache_attributes: Option<&CFDictionary>,
    metal_device: &ProtocolObject<dyn MTLDevice>,
    cache_out: NonNull<*mut CVMetalBufferCache>,
) -> CVReturn
Available on crate feature CVReturn and crate feature objc2 and crate feature objc2-metal and crate feature CVMetalBufferCache and non-watchOS only.
Expand description

Creates a new Buffer 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 buffer objects will be created.

Parameter cacheOut: The newly created buffer cache will be placed here

Returns: Returns kCVReturnSuccess on success