Every so often, I may have to create a new DirectX 12 program. The DirectX headers and libraries are part of the Windows headers and are generally present with the installation of the desktop development components of Visual Studio. There are some common or popular DirectX 12 related libraries that are not part of that. D3Dx12.h is one such header. I sometimes forget that this isn’t part of the Windows headers. I’m making this post for myself (should I not immediately recall where to find it). This header and other such helpers can be found on GitHub in the microsoft repository DirectX-Headers, found here.
Once you clone the repository, you’ll need to update your project to look in the folder. In Visual-Studio, right-click on your project and select “Properties.” Under “C/C++” select “General” and then “Additional Include Directories.” For all project configurations you will want to add the path to the DirectX-Headers\include\directx folder.
Posts may contain products with affiliate links. When you make purchases using these links, we receive a small commission at no extra cost to you. Thank you for your support.
Mastodon: @j2inet@masto.ai
Instagram: @j2inet
Facebook: @j2inet
YouTube: @j2inet
Telegram: j2inet
Bluesky: @j2i.net


