XMConvertFloatToHalfStream
XMConvertHalfToFloatStream
XMMatrixDecompose
XMPlaneTransformStream
XMVector2TransformCoordStream
XMVector2TransformNormalStream
XMVector2TransformStream
XMVector3ProjectStream
XMVector3TransformCoordStream
XMVector3TransformNormalStream
XMVector3TransformStream
XMVector3UnprojectStream
XMVector4TransformStream
Expand Minimize

XMComparisonAllTrue method

Tests the comparison value to determine if all of the compared components are true.

Syntax


bool XMComparisonAllTrue(
  [in]  uint32_t CR
);

Parameters

CR [in]

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".

Return value

Returns true if all of the compared components are true.

Remarks

The following code snippet highlights how this function might be used:


uint32_t comparisonValue = XMVector4EqualR( V1, V2 );
if( XMComparisonAllTrue( comparisonValue ) )
{
	DoStuff();
}

The DoStuff function will be called only if all four components of V1 and V2 are equal (all compared components are true).

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Namespace

Use DirectX.

Header

DirectXMath.h

See also

XMComparisonAllFalse
XMComparisonAllInBounds
XMComparisonAnyFalse
XMComparisonAnyOutOfBounds
XMComparisonAnyTrue
XMComparisonMixed

 

 

Community Additions

ADD
Show:
© 2014 Microsoft