Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.22 KB

xmglobalconst.md

File metadata and controls

45 lines (29 loc) · 1.22 KB
description ms.assetid title ms.topic ms.date
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.
FDE5C004-9E8E-4890-8FDC-987C1569D8E5
XMGLOBALCONST macro
reference
05/31/2018

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

DirectXMath Library Macros

Global Constants in the DirectXMath Library

selectany

declspec