Vector4.ConditionalSelect(Vector4, Vector4, Vector4) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Conditionally selects a value from two vectors on a bitwise basis.
public:
static System::Numerics::Vector4 ConditionalSelect(System::Numerics::Vector4 condition, System::Numerics::Vector4 left, System::Numerics::Vector4 right);
public static System.Numerics.Vector4 ConditionalSelect(System.Numerics.Vector4 condition, System.Numerics.Vector4 left, System.Numerics.Vector4 right);
static member ConditionalSelect : System.Numerics.Vector4 * System.Numerics.Vector4 * System.Numerics.Vector4 -> System.Numerics.Vector4
Public Shared Function ConditionalSelect (condition As Vector4, left As Vector4, right As Vector4) As Vector4
Parameters
- condition
- Vector4
The mask that is used to select a value from left or right.
- left
- Vector4
The vector that is selected when the corresponding bit in condition is one.
- right
- Vector4
The vector that is selected when the corresponding bit in condition is zero.
Returns
A vector whose bits come from left or right based on the value of condition.