Contents

CVMetalBufferCacheCreate(_:_:_:_:)

Declaration

func CVMetalBufferCacheCreate(_ allocator: CFAllocator?, _ cacheAttributes: CFDictionary?, _ metalDevice: any MTLDevice, _ cacheOut: UnsafeMutablePointer<CVMetalBufferCache?>) -> CVReturn

Parameters

  • allocator:

    The CFAllocatorRef to use for allocating the cache. May be NULL.

  • cacheAttributes:

    A CFDictionaryRef containing the attributes of the cache itself. May be NULL.

  • metalDevice:

    The Metal device for which the buffer objects will be created.

  • cacheOut:

    The newly created buffer cache will be placed here

Return Value

Returns kCVReturnSuccess on success

Discussion

Creates a new Buffer Cache.

See Also

Functions