Function

simd_select(_:_:_:)

Returns a vector containing elements from either the first or second parameter, depending on the high-order bit of the corresponding element in the third parameter.

Declaration

func simd_select(_ x: simd_float4, _ y: simd_float4, _ mask: simd_int4) -> simd_float4

See Also

Logic Functions

func simd_bitselect(simd_float4, simd_float4, simd_int4) -> simd_float4

Returns a vector containing elements from either the first or second parameter, depending on the corresponding element in the third parameter.