Instance Method

supportsFeatureSet(_:)

Determines whether a device supports a particular feature set.

Required.

Declaration

func supportsFeatureSet(_ featureSet: MTLFeatureSet) -> Bool

Parameters

featureSet

The Metal feature set that you're interested in querying.

Return Value

true if the feature set is supported; otherwise, false.

Discussion

If your app is running on Metal 3.0 or later, don't use this method. Instead, use supportsFamily(_:) to discover hardware-related features and supportsVersion(_:) to determine which Metal software features are available.

See Also

Querying Features

Detecting GPU Features and Metal Software Versions

Use the device object’s properties to determine how you perform tasks in Metal.

func supportsVersion(MTLSoftwareVersion) -> Bool

Determines whether the device object supports a particular Metal version.

Required.

Beta
func supportsFamily(MTLGPUFamily) -> Bool

Determines whether the device object supports the feature set of a particular GPU family.

Required.

Beta
enum MTLSoftwareVersion

Options for different versions of the Metal software.

Beta
enum MTLGPUFamily

Options for families of GPUs.

Beta
enum MTLFeatureSet

The device feature sets that define specific platform, hardware, and software configurations.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software