This may have breaking change impacts to client code: Starting with the June 2020 release, this library makes use of typed enum bitmask flags per the recommendation of the C++ Standard section 17.5.2.1.3 Bitmask types. The Microsoft GDK projects always use Shader Model 6. Since the NuGet still builds using VS 2017, the build-in shaders in that version are currently Shader Model 5.1. In the June 2021 release or later, the VS 2019 projects of this library build the HLSL shaders with Shader Model 6 via DXC.
The library assumes it is building for Windows 10 (aka _WIN32_WINNT=0x0A00) so it makes use of XAudio 2.9 and WIC2 as well as DirectX 12.ĭirectX Tool Kit for Audio, GamePad, Keyboard, Mouse, and SimpleMath are identical to the DirectX 11 version.
There are no expected DirectX 12 drivers for any lower feature level devices. VertexTypes does not include VertexPositionNormalTangentColorTexture or VertexPositionNormalTangentColorTextureSkinning which were intended for use with the DGSL pipeline.ĭirectX Tool Kit for DirectX 11 supports Feature Level 9.x, while DirectX 12 requires Direct3D Feature Level 11.0. CMO files are loaded using BasicEffect or SkinnedEffect materials. No support for Visual Studio Directed Graph Shader Language (DGSL) effect shaders (i.e.
NoticesĪll content and source code for this package are subject to the terms of the MIT License.įor the latest version of DirectXTK12, bug reports, etc. MakeSpriteFont and XWBTool can be found in the DirectX Tool Kit for DirectX 11 Documentationĭocumentation is available on the GitHub wiki.
GeometricPrimitive.h - draws basic shapes such as cubes and spheres.GamePad.h - gamepad controller helper using XInput.Effects.h - set of built-in shaders for common rendering tasks.EffectPipelineStateDescription.h - helper for creating PSOs.DirectXHelpers.h - misc C++ helpers for D3D programming.DescriptorHeap.h - helper for managing DX12 descriptor heaps.DDSTextureLoader.h - light-weight DDS file texture loader.CommonStates.h - common D3D state combinations.BufferHelpers.h - C++ helpers for creating D3D resources from CPU data.Audio.h - low-level audio API using XAudio2 (DirectXTK for Audio public header).
Public Header Files (in the DirectX C++ namespace): For details, see Where is the DirectX SDK?. These components are designed to work without requiring any content from the legacy DirectX SDK.
Use of the Windows Update SDK ( 19041) or later is required. This code is designed to build with Visual Studio 2017 ( 15.9), Visual Studio 2019, Visual Studio 2022, or clang for Windows v11 or later. This package contains the "DirectX Tool Kit", a collection of helper classes for writing Direct3D 12 C++ code for Universal Windows Platform (UWP) apps for Windows 11 / Windows 10, game titles for Xbox Series X|S / Xbox One, and Win32 desktop applications for Windows 11 / Windows 10.