Contents

.==(_:_:)

Pointwise compare equal to.

Declaration

static func .== (a: Scalar, b: SIMD3<Scalar>) -> SIMDMask<SIMD3<Scalar>.MaskStorage>

Discussion

Each lane of the result is true if a is equal to the corresponding lane of b, and false otherwise.

Equivalent to:

var result = SIMDMask<MaskStorage>()
for i in 0..<3 {
  result[i] = (a == b[i])
}