Type Alias

simd_uint4

A vector of four 32-bit unsigned integer values.

Declaration

typealias simd_uint4 = SIMD4<UInt32>

Topics

Vector Creation Functions

func simd_make_uint4(simd_uint8) -> simd_uint4

Returns a new vector by truncating the specified vector.

func simd_make_uint4(simd_uint16) -> simd_uint4

Returns a new vector by truncating the specified vector.

func simd_make_uint4(UInt32) -> simd_uint4

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

func simd_make_uint4(simd_uint2) -> simd_uint4

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

func simd_make_uint4(simd_uint3) -> simd_uint4

Returns a new vector with the first, second, and third elements from a three-element vector, and other elements set to zero.

func simd_make_uint4(simd_uint4) -> simd_uint4

Returns a new vector from a four-element vector.

func simd_make_uint4(UInt32, UInt32, simd_uint2) -> simd_uint4

Returns a new vector from 2 scalar values and a two-element vector.

func simd_make_uint4(UInt32, simd_uint2, UInt32) -> simd_uint4

Returns a new vector from 2 scalar values and a two-element vector.

func simd_make_uint4(simd_uint2, UInt32, UInt32) -> simd_uint4

Returns a new vector from 2 scalar values and a two-element vector.

func simd_make_uint4(simd_uint2, simd_uint2) -> simd_uint4

Returns a new vector from 2 two-element vectors.

func simd_make_uint4(UInt32, simd_uint3) -> simd_uint4

Returns a new vector from a scalar value and a three-element vector.

func simd_make_uint4(simd_uint3, UInt32) -> simd_uint4

Returns a new vector from a scalar value and a three-element vector.

func simd_make_uint4_undef(UInt32) -> simd_uint4

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

func simd_make_uint4_undef(simd_uint2) -> simd_uint4

Returns a new vector with the first and second elements from a two-element vector, and other elements undefined.

func simd_make_uint4_undef(simd_uint3) -> simd_uint4

Returns a new vector with the first, second, and third elements from a three-element vector, and other elements undefined.

Common Functions

func simd_clamp(simd_uint4, simd_uint4, simd_uint4) -> simd_uint4

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

func simd_equal(simd_uint4, simd_uint4) -> simd_bool

Returns true if all elements of a vector are equal; false otherwise.

Reduce Functions

func simd_reduce_add(simd_uint4) -> UInt32

Returns the sum of all elements in a vector.

func simd_reduce_max(simd_uint4) -> UInt32

Returns the maximum value in a vector.

func simd_reduce_min(simd_uint4) -> UInt32

Returns the minimum value in a vector.

Extrema Functions

func simd_max(simd_uint4, simd_uint4) -> simd_uint4

Returns the maximum value of each element in a vector.

func simd_min(simd_uint4, simd_uint4) -> simd_uint4

Returns the minimum value of each element in a vector.

Logic Functions

func simd_any(simd_uint4) -> simd_bool

Returns true if the high-order bit of any element is set; false otherwise.

func simd_all(simd_uint4) -> simd_bool

Returns true if the high-order bit of every element is set; false otherwise.

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

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

See Also

Vectors: 32-Bit Unsigned Integer Values

typealias simd_uint2

A vector of two 32-bit unsigned integer values.

typealias simd_uint3

A vector of three 32-bit unsigned integer values.