Metal 系列二:GPU Devices--(查询特性)Querying Features

Metal 系列二:GPU Devices--(查询特性)Querying Features
//设备功能集定义特定的平台,硬件和软件配置
enum MTLFeatureSet
The device feature sets that define specific platform, hardware, and software configurations.

//返回一个布尔值,指示设备是否支持特定功能集。
func supportsFeatureSet(MTLFeatureSet) -> Bool
Returns a Boolean value that indicates whether a device supports a particular fea