---
title: "simd_select(_:_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/simd_select(_:_:_:)-9gbqb"
---

# simd_select(_:_:_:)

Returns a vector that contains elements from either the first or second parameter, based on the corresponding element’s high-order bit in the mask.

## Declaration

```swift
func simd_select(_ x: simd_float3, _ y: simd_float3, _ mask: simd_int3) -> simd_float3
```

## See Also

### Logic Functions

- [simd_bitselect(_:_:_:)](simd/simd_bitselect(_:_:_:)-5j5g8.md)
