CVMetalBufferCache.TryCreate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Returns
True if successful, otherwise false.