Tests the comparison value to determine if the compared components had mixed results–some true and some false.
bool XMComparisonMixed(
uint32_t CR
)
CR
Type: uint32_t
Comparison value to test. The comparison value is typically retrieved using a recording version of an DirectXMath function such as XMVector4EqualR. The names of the recording functions end with an “R”.
Type: bool
Returns true if some of the compared components are true and some of the compared components are false.
The following code snippet highlights how this function might be used:
uint32_t comparisonValue = XMVector4EqualR( V1, V2 );
if( XMComparisonMixed( comparisonValue ) )
{
DoStuff();
}
The DoStuff function will be called only if some of the components of V1 and V2 are different and some of the components are the same. The DoStuff function will not be called if all of the components are equal, nor will it be called if all of the components are different.
Header: Declared in directxmath.h.