XMVerifyCPUSupport

Indicates if the DirectXMath Library supports the current platform.

Syntax

bool XMVerifyCPUSupport()  

Return value

Type: bool 

Returns true if the DirectXMath Library supports a given platform; false if it does not.

Remarks

This is a run-time check of processor support and should be called at startup of the program before any DirectXMath functions or types are used.

On Windows, this function is implemented using IsProcessorFeaturePresent.

Therefore, when executed on windows, XMVerifyCPUSupport shares platform support requirements of IsProcessorFeaturePresent.

Note

To avoid a hard dependancy on windows.h, if IsProcessorFeaturePresent is not defined this function always returns false. Be sure to include “windows.h” before “directxmath.h” in any module where you are calling this function.

Requirements

Header: Declared in directxmath.h.