-
Notifications
You must be signed in to change notification settings - Fork 4
Home
This repository contains an archive of DirectX samples that shipped in the legacy DirectX SDK. They have been updated to build with Visual Studio 2019 or later, require only the current Windows SDK, and make use the Microsoft.DXSDK.D3DX NuGet package.
THIS REPOSITORY IS ONLY FOR EDUCATIONAL AND HISTORICAL REFERENCE. Use of the legacy DirectX SDK, D3DX9, D3DX10, D3DX11, DXUT, and/or FX11 is not recommended for new projects.
Copyright (c) Microsoft Corporation.
The DirectX SDK itself is deprecated and legacy per Microsoft Docs, along with D3DX9, D3DX10, D3DX11, XACT, Managed DirectX 1.1, XInput 1.1-1.3, and XAudio 2.0-2.7. These samples are provided here for developer education, but new projects are strongly encouraged to seek out supported alternatives to these legacy components. They also have known security issues and bugs as well.
Technology | Notes |
---|---|
DirectX 12 | See DirectX-Graphics-Samples, DirectX-Headers, DirectXShaderCompiler, and the DirectX 12 Agility SDK. |
Microsoft GDKXbox Development | See Xbox-GDK-Samples and Xbox-ATG-Samples. |
Universal Windows Platform (UWP) | See Windows-universal-samples. |
DXUT for Direct3D 11 | See DXUT. |
Effects for Direct3D 11 | See FX11. |
XNAMath | See DirectXMath. |
DirectX Capabilities Viewer | See DxCapsViewer. |
UVAtlas isochart texture atlas | See UVAtlas. |
The bulk of the samples are just updated versions of the original samples that shipped in the legacy DirectX SDK. Specific differences are noted in the description of the samples provided below.
When using "DXUT" or "DXUT11", you must add the files dxerr.h
and dxerr.cpp
to the project and remove the reference to dxerr.lib
, in addition to adding the Microsoft.DXSDK.D3DX
NuGet package. See this blog post.
The "DXUT11.1" project requires additional porting changes which can be found here.
- Windows desktop apps
- Windows 11
- Windows 10
- Windows 8.1
- Windows 7 Service Pack 1
- Visual Studio 2019