Contents

.==(_:_:)

Pointwise compare equal to.

Declaration

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

Discussion

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

Equivalent to:

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