Share via


CIContext.FromMetalDevice Method

Definition

Overloads

Name Description
FromMetalDevice(IMTLDevice)

Creates a new CIContext from the provided Metal device.

FromMetalDevice(IMTLDevice, CIContextOptions)

Creates a new CIContext from the provided Metal device, along with the specified context.

FromMetalDevice(IMTLDevice, NSDictionary<NSString,NSObject>)

Creates a new CIContext from the provided Metal device, applying the specified options.

FromMetalDevice(IMTLDevice)

Creates a new CIContext from the provided Metal device.

[Foundation.Export("contextWithMTLDevice:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static CoreImage.CIContext FromMetalDevice(Metal.IMTLDevice device);
[<Foundation.Export("contextWithMTLDevice:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromMetalDevice : Metal.IMTLDevice -> CoreImage.CIContext

Parameters

device
IMTLDevice

Returns

Attributes

Applies to

FromMetalDevice(IMTLDevice, CIContextOptions)

Creates a new CIContext from the provided Metal device, along with the specified context.

public static CoreImage.CIContext FromMetalDevice(Metal.IMTLDevice device, CoreImage.CIContextOptions? options);
static member FromMetalDevice : Metal.IMTLDevice * CoreImage.CIContextOptions -> CoreImage.CIContext

Parameters

device
IMTLDevice

Returns

Applies to

FromMetalDevice(IMTLDevice, NSDictionary<NSString,NSObject>)

Creates a new CIContext from the provided Metal device, applying the specified options.

[Foundation.Export("contextWithMTLDevice:options:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static CoreImage.CIContext FromMetalDevice(Metal.IMTLDevice device, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>? options);
[<Foundation.Export("contextWithMTLDevice:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromMetalDevice : Metal.IMTLDevice * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> CoreImage.CIContext

Parameters

device
IMTLDevice

The source IMTLDevice.

options
NSDictionary<NSString,NSObject>

The desired options for the new CIContext.

Returns

A new CIContext.

Attributes

Applies to