<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/clamp(_:min:max:)-dhvg",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "s:4simd5clamp_3min3maxs5SIMD3Vys6UInt32VGAI_A2HtF"
  },
  "title" : "clamp(_:min:max:)"
}
-->

# clamp(_:min:max:)

Returns each element in a vector clamped to a specified range.

```
func clamp(_ x: SIMD3<UInt32>, min: UInt32, max: UInt32) -> SIMD3<UInt32>
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)