MTLFeatureSet
The device feature sets that define specific platform, hardware, and software configurations.
Declaration
enum MTLFeatureSetOverview
If your app is running on an operating system that supports the supportsFamily(_:) method, use that method instead. See Detecting GPU features and Metal software versions for more information about MTLGPUFamily — the replacement for this enumeration — and the feature set tables. This type doesn’t define constants for GPU families introduced after iOS GPU family 5.
Metal feature sets define the feature availability, implementation limits, and pixel format capabilities for each device. The table shows the GPU families and their corresponding GPU hardware.
GPU family | GPU hardware |
|---|---|
iOS GPU family 1 | Apple A7 devices |
iOS GPU family 2 [Image] tvOS GPU family 1 | Apple A8 devices |
iOS GPU family 3 [Image] tvOS GPU family 2 | Apple A9 devices [Image] Apple A10 devices |
iOS GPU family 4 | Apple A11 devices |
iOS GPU family 5 | Apple A12 devices |
macOS GPU family 1 | iMac Pro models [Image] iMac models from 2012 or later [Image] MacBook models from 2015 or later [Image] MacBook Pro models from 2012 or later [Image] MacBook Air models from 2012 or later [Image] Mac mini models from 2012 or later [Image] Mac Pro models from late 2013 |
macOS GPU family 2 | iMac models from 2015 or later [Image] MacBook Pro models from 2016 or later [Image] MacBook models from 2016 or later [Image] iMac Pro models from 2017 or later |
For more information on Mac support for Metal, see Mac computers that support Metal.
Topics
iOS GPU family 5
iOS GPU family 4
iOS GPU family 3
MTLFeatureSet.iOS_GPUFamily3_v4MTLFeatureSet.iOS_GPUFamily3_v3MTLFeatureSet.iOS_GPUFamily3_v2MTLFeatureSet.iOS_GPUFamily3_v1
iOS GPU family 2
MTLFeatureSet.iOS_GPUFamily2_v5MTLFeatureSet.iOS_GPUFamily2_v4MTLFeatureSet.iOS_GPUFamily2_v3MTLFeatureSet.iOS_GPUFamily2_v2MTLFeatureSet.iOS_GPUFamily2_v1
iOS GPU family 1
MTLFeatureSet.iOS_GPUFamily1_v5MTLFeatureSet.iOS_GPUFamily1_v4MTLFeatureSet.iOS_GPUFamily1_v3MTLFeatureSet.iOS_GPUFamily1_v2MTLFeatureSet.iOS_GPUFamily1_v1
tvOS GPU family 2
tvOS GPU family 1
MTLFeatureSet.tvOS_GPUFamily1_v4MTLFeatureSet.tvOS_GPUFamily1_v3MTLFeatureSet.tvOS_GPUFamily1_v2MTLFeatureSet.tvOS_GPUFamily1_v1
macOS GPU family 2
macOS GPU family 1
MTLFeatureSet.macOS_GPUFamily1_v4MTLFeatureSet.macOS_GPUFamily1_v3MTLFeatureSet.macOS_GPUFamily1_v2MTLFeatureSet.macOS_GPUFamily1_v1