Modifier

Partager via


CIContext.FromMetalDevice Method

Definition

Overloads

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.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public static CoreImage.CIContext FromMetalDevice (Metal.IMTLDevice device);
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.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public static CoreImage.CIContext FromMetalDevice (Metal.IMTLDevice device, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> options);
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 T:CoreImag.CIContext.

This parameter can be null.

Returns

A new CIContext.

Attributes

Applies to