One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSNNCompare

class · iOS 12.1+ · SDK 27.1

class MPSNNCompare

Members (5)

init · iOS 12.1+

init

TypeScript
static init(device: SDKHandle): MPSNNCompare
Swift declaration
init(device: any MTLDevice)
get · iOS 12.1+

comparisonType

TypeScript
get comparisonType(): MPSNNComparisonType
Swift declaration
var comparisonType: MPSNNComparisonType { get set }
set · iOS 12.1+

comparisonType

TypeScript
set comparisonType(value: MPSNNComparisonType)
Swift declaration
var comparisonType: MPSNNComparisonType { get set }
get · iOS 12.1+

threshold

TypeScript
get threshold(): number
Swift declaration
var threshold: Float { get set }
set · iOS 12.1+

threshold

TypeScript
set threshold(value: number)
Swift declaration
var threshold: Float { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPSNNCompare.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All MetalPerformanceShaders types →