Share via


CVMetalBufferCache.TryCreateHandle Method

Definition

Try to create a new CVMetalBufferCache instance.

public static bool TryCreateHandle(Metal.IMTLDevice device, Foundation.NSDictionary? attributes, out IntPtr handle, out CoreVideo.CVReturn status);
static member TryCreateHandle : Metal.IMTLDevice * Foundation.NSDictionary * nativeint * 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.

handle
IntPtr

nativeint

The pointer to the new CVMetalBufferCache instance, if successful.

status
CVReturn

An error code if failed, or Success if successful.

Returns

True if successful, otherwise false.

Applies to