Operator 演算子

.|(_:_:)

A vector mask that is the pointwise logical disjunction of the inputs. この入力のポイント単位論理和であるベクターマスク。

Declaration 宣言

static func .| (a: SIMDMask<Storage>, b: SIMDMask<Storage>) -> SIMDMask<Storage>
Available when Storage is SIMD3<Int32>. StorageSIMD3<Int32>である時に利用可能です。

Discussion 解説

Equivalent to: 次に等しい:


var result = SIMDMask<SIMD3<Int32>>()
for i in result.indices {
  result[i] = a[i] || b[i]
}

Note that unlike the scalar || operator, the SIMD .| operator always fully evaluates both arguments. スカラー||演算子と違って、SIMD .| 演算子は常に両方の引数を完全に評価することに注意してください。