<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/simd_uchar4",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "c:@T@simd_uchar4"
  },
  "title" : "simd_uchar4"
}
-->

# simd_uchar4

A vector of four 8-bit unsigned integer elements.

```
typealias simd_uchar4 = SIMD4<UInt8>
```

## Topics

### Functions to Create Four-Element Vectors From Other Vectors

[`simd_make_uchar4(_:)`](/documentation/simd/simd_make_uchar4(_:)-4hwy4)

Returns a new vector from the specified two-element vector, and other elements set to zero.

[`simd_make_uchar4(_:)`](/documentation/simd/simd_make_uchar4(_:)-4lf1x)

Returns a new vector from the specified three-element vector, and other elements set to zero.

[`simd_make_uchar4(_:)`](/documentation/simd/simd_make_uchar4(_:)-3x2fa)

Returns a new vector from the specified vector.

[`simd_make_uchar4(_:)`](/documentation/simd/simd_make_uchar4(_:)-3i1f6)

Returns a new vector by truncating the specified eight-element vector.

[`simd_make_uchar4(_:)`](/documentation/simd/simd_make_uchar4(_:)-174yg)

Returns a new vector by truncating the specified sixteen-element vector.

[`simd_make_uchar4(_:)`](/documentation/simd/simd_make_uchar4(_:)-6662s)

Returns a new vector by truncating the specified thirty two-element vector.

[`simd_make_uchar4(_:)`](/documentation/simd/simd_make_uchar4(_:)-4d9x4)

Returns a new vector by truncating the specified sixty four-element vector.

[`simd_make_uchar4(_:_:)`](/documentation/simd/simd_make_uchar4(_:_:)-29ka1)

Returns a new vector from the specified vectors.

[`vector4`](/documentation/simd/vector4-3tea7)

Returns a new vector from the specified vectors.

[`simd_make_uchar4_undef(_:)`](/documentation/simd/simd_make_uchar4_undef(_:)-5we7j)

Returns a new vector from the specified two-element vector, and other elements undefined.

[`simd_make_uchar4_undef(_:)`](/documentation/simd/simd_make_uchar4_undef(_:)-5tfyu)

Returns a new vector from the specified three-element vector, and other elements undefined.

### Functions to Create Four-Element Vectors From Scalar Values

[`simd_make_uchar4(_:)`](/documentation/simd/simd_make_uchar4(_:)-7gszj)

Returns a new vector with the first element set to a scalar value, and other elements set to zero.

[`simd_make_uchar4(_:_:_:_:)`](/documentation/simd/simd_make_uchar4(_:_:_:_:))

Returns a new vector from the specified scalar values.

[`vector4`](/documentation/simd/vector4-7c8o4)

Returns a new vector from the specified scalar values.

[`simd_make_uchar4_undef(_:)`](/documentation/simd/simd_make_uchar4_undef(_:)-7uno)

Returns a new vector with the first element set to a scalar value, and other elements undefined.

### Functions to Create Four-Element Vectors From Combinations of Vectors and Scalar Values

[`simd_make_uchar4(_:_:_:)`](/documentation/simd/simd_make_uchar4(_:_:_:)-5x9io)

Returns a new vector from a vector and scalar values.

[`simd_make_uchar4(_:_:)`](/documentation/simd/simd_make_uchar4(_:_:)-3zlj2)

Returns a new vector from a vector and a scalar value.

[`vector4`](/documentation/simd/vector4-8y2oj)

Returns a new vector from a vector and a scalar value.

[`simd_make_uchar4(_:_:_:)`](/documentation/simd/simd_make_uchar4(_:_:_:)-9rqjk)

Returns a new vector from two scalar values and a vector.

[`simd_make_uchar4(_:_:_:)`](/documentation/simd/simd_make_uchar4(_:_:_:)-53d7w)

Returns a new vector from a scalar value, a vector, and a scalar value.

[`simd_make_uchar4(_:_:)`](/documentation/simd/simd_make_uchar4(_:_:)-4sdi7)

Returns a new vector from a scalar value and a vector.

### Functions to Create Four-Element Vectors From Vectors of Other Types

[`simd_uchar`](/documentation/simd/simd_uchar-8g94o)

Returns a new vector from the specified vector of 8-bit, signed integer elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8fzaw)

Returns a new vector from the specified vector of 8-bit, unsigned integer elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8geew)

Returns a new vector from the specified vector of 16-bit, signed integer elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8g46w)

Returns a new vector from the specified vector of 16-bit, unsigned integer elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8g7eg)

Returns a new vector from the specified vector of 32-bit, signed integer elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8fxko)

Returns a new vector from the specified vector of 32-bit, unsigned integer elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8g90k)

Returns a new vector from the specified vector of 64-bit, signed integer elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8fz6s)

Returns a new vector from the specified vector of 64-bit, unsigned integer elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8g0ws)

Returns a new vector from the specified vector of 32-bit, floating-point elements.

[`simd_uchar`](/documentation/simd/simd_uchar-8g1h0)

Returns a new vector from the specified vector of 64-bit, floating-point elements.

### Functions to Perform Saturating Conversion From Vectors of Other Types

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2dfgm)

Returns a new vector from the specified vector of 8-bit, signed integer elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2d5ae)

Returns a new vector from the specified vector of 8-bit, unsigned integer elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2dkfa)

Returns a new vector from the specified vector of 16-bit, signed integer elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2daau)

Returns a new vector from the specified vector of 16-bit, unsigned integer elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2ddea)

Returns a new vector from the specified vector of 32-bit, signed integer elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2d3ma)

Returns a new vector from the specified vector of 32-bit, unsigned integer elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2deje)

Returns a new vector from the specified vector of 64-bit, signed integer elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2d4d6)

Returns a new vector from the specified vector of 64-bit, unsigned integer elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2d6fq)

Returns a new vector from the specified vector of 32-bit, floating point elements.

[`simd_uchar_sat`](/documentation/simd/simd_uchar_sat-2d6wq)

Returns a new vector from the specified vector of 64-bit, floating point elements.

### Common Functions

[`simd_clamp(_:_:_:)`](/documentation/simd/simd_clamp(_:_:_:)-7gs2x)

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

[`simd_equal(_:_:)`](/documentation/simd/simd_equal(_:_:)-4wf8b)

Returns true if every element in a vector is exactly equal to the corresponding element in a second vector, and otherwise returns false.

### Reduce Functions

[`simd_reduce_min(_:)`](/documentation/simd/simd_reduce_min(_:)-4uo6i)

Returns the miniumum value in a vector.

[`simd_reduce_max(_:)`](/documentation/simd/simd_reduce_max(_:)-4qv6y)

Returns the maximum value in a vector.

[`simd_reduce_add(_:)`](/documentation/simd/simd_reduce_add(_:)-2yos8)

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-9muwy)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-2f249)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

[`simd_any(_:)`](/documentation/simd/simd_any(_:)-6d22b)

[`simd_all(_:)`](/documentation/simd/simd_all(_:)-1jo4t)

[`simd_bitselect(_:_:_:)`](/documentation/simd/simd_bitselect(_:_:_:)-46k0t)

Returns a vector that contains elements from either the first or second parameter, based on the corresponding element in the third parameter.

### Alternative Type Alias

[`vector_uchar4`](/documentation/simd/vector_uchar4)



---

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)