Determines whether the device object supports the feature set of a particular GPU family.
Required.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
Framework
- Metal
Declaration
func supportsFamily(_ gpuFamily: MTLGPUFamily) -> Bool
Determines whether the device object supports the feature set of a particular GPU family.
Required.
SDKs
Framework
func supportsFamily(_ gpuFamily: MTLGPUFamily) -> Bool
Use the device object’s properties to determine how you perform tasks in Metal.
func supports Feature Set(MTLFeature Set) -> Bool
Determines whether a device supports a particular feature set.
Required.
enum MTLGPUFamily
Options for families of GPUs.
enum MTLFeature Set
The device feature sets that define specific platform, hardware, and software configurations.