Comments (4)
For Windows I'm assuming use of MSVC or MSVC-like compiler: cl.exe, clang-cl, icl.exe, icx.exe.
I could potentially update DirectXMath to use fully qualified name resolution in these cases if that would help.
from directxtk.
The use of Internal
in multiple contexts is the problem.
Ok, I propose that I change the DirectXMath library to use DirectX::MathInternal
, and DirectX Tool Kit for DX11 & DX12 to use DirectX::DX1?::ToolKitInternal
.
That should work, yes?
from directxtk.
I tried it, and unfortunately fully-qualified name resolution won't work.
namespace DirectX
{
namespace Internal {}
inline namespace DX11 { namespace Internal {} }
}
means that while DirectX::DX11::Internal
is not ambiguous, DirectX::Internal
is.
The only solution that worked for me was just getting rid of the ambiguity. If DX11::Internal
really is internal, is there a big risk to its name being changed? I was able to get DirectXTK compiling on clang by changing DX11::Internal
to DX11::InlinedInternal
in ScreenGrab.cpp
and WICTextureLoader.cpp
, but I'm not sure if there are consequences I'm not seeing.
Let me know if you want me to put up a PR with those changes.
from directxtk.
That should fix it, thanks!
from directxtk.
Related Issues (20)
- DirectX Tool Kit for DX9
- DrawLine line thickness HOT 1
- Mesh Outline Effect HOT 2
- Point Light Shader HOT 2
- Clarify required WinSDK version HOT 2
- Hard fps lock to refresh rate value in fullscreen games - Win11 22H2 (DX11) HOT 2
- XWBtool makes all wav files the same name after repackaging HOT 5
- Audio: how to set distance attenuation/fall-off? HOT 4
- darker images loading HOT 1
- Request/question: Add a Vector4/floating point overload for the spritebatch's draw function
- undefined data type in PostProcess method HOT 3
- Aa
- Should Mouse use WM_MOUSELEAVE for Win32 raw input
- SimpleMath geometric random functions
- Error with custom shaders HOT 4
- Keyboard and mouse uses inconsistent coordinate systems, resulting in incorrect movement HOT 11
- Reproducible crash in the 3D Audio System HOT 8
- D3D11CreateDevice multi-threaded access issue HOT 2
- SpriteFont DrawString issue making text into black boxes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directxtk.