Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
XMGLOBALCONST macro
Collapse the table of content
Expand the table of content

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.

Related topics

Global Constants in the DirectXMath Library
selectany
declspec

 

 

Community Additions

ADD
Show:
© 2015 Microsoft