You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using directx on a personal project that uses modules and had crashes because some of the XMGLOBALCONST declared constants simply don't have the proper values at runtime. In our case it was specifically g_XMInfinity and g_XMOneHalf (The values were 000). The crashes were caused by asserts failing on XMIsInfinity, among others, due to those.
In our case, we use DXTK and simplemath and import it through a Module partition with the following syntax : export import <SimpleMath.h>.
It looks like it has something to do with how __declspec(selectany) reacts when used within modules.
Are we right or is there something we are missing?