directxtk12
A collection of helper classes for writing DirectX 12 code in C++
Latest version: 2024.09
Add to xmake.lua
add_requires("directxtk12 2024.09")Learn how to add and link packages with Xmake →
Information
- License
- MIT
- Recipe updated
- 2024-09-20T13:02:42.000Z
Platforms
- windows: x86, x64, arm, arm64, arm64ec
Options
dxil_shaders- Use DXC Shader Model 6 for shaders · Type: boolean · Default: true
gameinput- Build for GameInput · Type: boolean · Default: false
iterator_debugging- Disable MSVC iterator debugging in Debug · Type: boolean · Default: false
mixed_dx11- Support linking with DX11 version of toolkit · Type: boolean · Default: false
no_wchar_t- Use legacy wide-character as unsigned short · Type: boolean · Default: false
prebuilt_shaders- Use externally built HLSL shaders · Type: boolean · Default: false
shared- Build shared library. · Type: boolean · Default: false
spectre_mitigation- Build using /Qspectre for MSVC · Type: boolean · Default: false
testing- Build the testing tree · Type: boolean · Default: true
wgi- Build for Windows.Gaming.Input · Type: boolean · Default: false
xaudio_redist- Build for XAudio2Redist · Type: boolean · Default: false
xaudio_win10- Build for XAudio 2.9 · Type: boolean · Default: true
xinput- Build for XInput · Type: boolean · Default: false
Versions
- 2024.06
- 2024.09
Dependencies
Install with xrepo
Install the package independently of a project and inspect its available configuration.
install
xrepo install "directxtk12 2024.09"show info
xrepo info "directxtk12"Link a library to your target
Declare the requirement, then attach the library to the target that uses it.
xmake.lua
add_requires("directxtk12 2024.09")
target("demo")
set_kind("binary")
add_files("src/*.cpp")
add_packages("directxtk12")Open a package environment
Open a shell with the environment exported by this package. Use the executable names documented by the package.
enter shell
xrepo env -b "directxtk12 2024.09" shell