Function

simd_make_float4(_:_:_:)

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

Declaration

func simd_make_float4(_ x: Float, _ y: Float, _ zw: simd_float2) -> simd_float4

See Also

Vector Creation Functions

func simd_make_float4(Float) -> simd_float4

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

func simd_make_float4(simd_float2) -> simd_float4

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

func simd_make_float4(simd_float3) -> simd_float4

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_float4(simd_float4) -> simd_float4

Returns a new vector from a four-element vector.

func simd_make_float4(Float, Float, Float, Float) -> simd_float4

Returns a new vector from 4 scalar values.

func simd_make_float4(Float, simd_float2, Float) -> simd_float4

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

func simd_make_float4(simd_float2, Float, Float) -> simd_float4

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

func simd_make_float4(simd_float2, simd_float2) -> simd_float4

Returns a new vector from 2 two-element vectors.

func simd_make_float4(Float, simd_float3) -> simd_float4

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

func simd_make_float4(simd_float3, Float) -> simd_float4

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

func simd_make_float4_undef(Float) -> simd_float4

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

func simd_make_float4_undef(simd_float2) -> simd_float4

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

func simd_make_float4_undef(simd_float3) -> simd_float4

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