VectorShuffle

Creates a vector through selecting two components from each vector via a shuffle mask.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathNeon.h

Include

#include "Math/UnrealMathNeon.h"

Syntax

VectorRegister VectorShuffle
(
    VectorRegister V1,
    VectorRegister V2,
    uint32 PermuteX,
    uint32 PermuteY,
    uint32 PermuteZ,
    uint32 PermuteW
)

Remarks

Creates a vector through selecting two components from each vector via a shuffle mask.

Returns

The swizzled vector

Parameters

Parameter

Description

Vec1

Source vector1

Vec2

Source vector2

X

Index for which component of Vector1 to use for X (literal 0-3)

Y

Index for which component of Vector1 to use for Y (literal 0-3)

Z

Index for which component of Vector2 to use for Z (literal 0-3)

W

Index for which component of Vector2 to use for W (literal 0-3)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss