Enumeration

MTLGPUFamily

Options for families of GPUs.

Declaration

typedef enum MTLGPUFamily : NSInteger {
    ...
} MTLGPUFamily;

Topics

Testing for Common GPU Family Characteristics

MTLGPUFamilyCommon1

A GPU supporting the common family 1 characteristics.

MTLGPUFamilyCommon2

A GPU supporting the common family 2 characteristics.

MTLGPUFamilyCommon3

A GPU supporting the common family 3 characteristics.

Testing for iOS Family GPUs

MTLGPUFamilyApple1

An Apple family 1 GPU.

MTLGPUFamilyApple2

An Apple family 2 GPU.

MTLGPUFamilyApple3

An Apple family 3 GPU.

MTLGPUFamilyApple4

An Apple family 4 GPU.

MTLGPUFamilyApple5

An Apple family 5 GPU.

MTLGPUFamilyApple6

An Apple family 6 GPU.

Testing for macOS Family GPUs

MTLGPUFamilyMac1

A family 1 Mac GPU.

MTLGPUFamilyMac2

A family 2 Mac GPU.

Testing for Mac Catalyst Family GPUs

MTLGPUFamilyMacCatalyst1

A family 1 Mac GPU when running in an iOS app.

MTLGPUFamilyMacCatalyst2

A family 2 Mac GPU when running in an iOS app.

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.

- supportsFamily:

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

Required.

- supportsFeatureSet:

Determines whether a device supports a particular feature set.

Required.

MTLFeatureSet

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