Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/VectorSelect
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathNeon.h |
| Include | #include "Math/UnrealMathNeon.h" |
VectorRegister4Float VectorSelect
(
const VectorRegister4Float & Mask,
const VectorRegister4Float & Vec1,
const VectorRegister4Float & Vec2
)
Remarks
Does a bitwise vector selection based on a mask (e.g., created from VectorCompareXX) VectorRegister4Float( for each bit i: Mask[i] ? Vec1[i] : Vec2[i] )
Parameters
| Name | Description |
|---|---|
| Mask | Mask (when 1: use the corresponding bit from Vec1 otherwise from Vec2) |
| Vec1 | 1st vector |
| Vec2 | 2nd vector |