XMGLOBALCONST macro

Declares an object to be a pick-any constant, to avoid redundant reloads of that object if it is used (and declared) in multiple places in the DirectXMath Library.

Syntax

#define XMGLOBALCONST  extern const __declspec(selectany)

Remarks

Using XMGLOBALCONST permits the specification of global constants. This helps to reduce the size of an application's data segment, avoid redundant object creation and destruction, and reduce load and store operations.

Requirements

Header: Declared in DirectXMath.h.

DirectXMath Library Macros

Global Constants in the DirectXMath Library

selectany

declspec