@@ -50,10 +50,12 @@ const (
GPUFamilyMetal3 GPUFamily = 5001 // Metal 3 features.
)
// FeatureSet defines a specific platform, hardware, and software configuration.
//
// Deprecated: Use GPUFamily instead.
//
// Reference: https://developer.apple.com/documentation/metal/mtlfeatureset.
type FeatureSet uint16
// The device feature sets that define specific platform, hardware, and software configurations.
const (
@@ -365,10 +367,12 @@ func (d Device) SupportsFamily(gf GPUFamily) bool {
return bool(C.Device_SupportsFamily(d.device, C.uint16_t(gf)))
}
// SupportsFeatureSet reports whether device d supports feature set fs.
//
// Deprecated: Use SupportsFamily instead.
//
// Reference: https://developer.apple.com/documentation/metal/mtldevice/1433418-supportsfeatureset.
func (d Device) SupportsFeatureSet(fs FeatureSet) bool {
return bool(C.Device_SupportsFeatureSet(d.device, C.uint16_t(fs)))
}