Share via


CVMetalBufferCache.TryCreate Method

Definition

Try to create a new CVMetalBufferCache instance.

public static bool TryCreate(Metal.IMTLDevice device, Foundation.NSDictionary? attributes, out CoreVideo.CVMetalBufferCache? metalBufferCache, out CoreVideo.CVReturn status);
static member TryCreate : Metal.IMTLDevice * Foundation.NSDictionary * CVMetalBufferCache * CVReturn -> bool

Parameters

device
IMTLDevice

The Metal device to create the CVMetalBufferCache instance for.

attributes
NSDictionary

An optional dictionary of attributes to apply to the cache.

metalBufferCache
CVMetalBufferCache

The new CVMetalBufferCache instance, if successful, null otherwise.

status
CVReturn

An error code if failed, or Success if successful.

Returns

True if successful, otherwise false.

Applies to