This repo contains Direct3D 9, Direct3D 10, a few Direct3D 11, and DirectSound samples that originally shipped in the legacy DirectX SDK. These are all Windows desktop applications for Windows 7 Service Pack 1 or later.
They have been cleaned up to build using the Windows 10 SDK, and DO NOT require the DirectX SDK to build. They make use of the Microsoft.DXSDK.D3DX NuGet package for the legacy D3DX9/D3DX10/D3DX11 libraries. Projects for Visual Studio 2019 are provided, and can be upgraded to VS 2022.
The DXUT here supports Direct3D 9 and Direct3D 10. The DXUT11 here supports Direct3D 9 and Direct3D 11. Both have been modified to use a locally built dxerr instead of dxerr.lib. For more information, see this blog post.
For fully cleaned up and modernized versions of DXUT11, Effects11, Direct3D 11 samples/tutorials, and other legacy DirectX SDK samples see DXUT, FX11, and directx-sdk-samples. Those samples do not make use of the legacy D3DX libraries.
This project is 'archived'. These legacy samples are provided 'as is' for reference and developer education.
All content and source code for this package are subject to the terms of the MIT License. Use of the NuGet is subject to it's own license terms.
Microsoft.VisualStudio.Component.VC.ATLMFC
) optional component.For questions, consider using Stack Overflow with the direct3d tag, or the DirectX Discord Server in the dx9-dx11-developers channel.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
The ATI Research 3D Application Research Group contributed IrradianceVolume and ParallaxOcclusionMapping.
The AMD Developer Relations Team contributed DepthOfField10.1, HDAO10.1, TransparencyAA10.1, ContactHardeningShadows11, DecalTessellation11, DetailTessellation11, and PNTriangles11.
A full list of credits for all these samples is lost to history. They have been developed by various Microsoft engineers over many years.
A partial list of contributors includes: David Cook, Shanon Drone, Kev Gee, Andy Glaister, Xin Huang, Matt Lee, Jason Sandlin, Peter-Pike Sloan, David Tuft, and Chuck Walbourn.