# microsoft/DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++

Repository: https://github.com/microsoft/DirectXTK12
Canonical: https://ross.abutalabs.com/products/directxtk12
Homepage: https://walbourn.github.io/directx-tool-kit-for-directx-12/
Language: C++
License: MIT
License Family: permissive
Topics: microsoft, directx, directx-12, cpp-library, graphics, xbox, uwp, directxtk, shaders, desktop
Last push: 2026-08-20T00:09:34+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 59, longevity 100
- inputs: {"age_days": 3730, "days_push": 14, "days_rel": 117, "gap_med": 110.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1749, forks 465 (observed 2026-08-28T04:05:31.012402+00:00)

## What it is
DirectX Tool Kit for DirectX 12 is a C++ library of helper classes for writing Direct3D 12 code, covering sprite rendering, effects, texture loading, geometry, input, and audio. It targets Win32 desktop, Xbox, and UWP applications and serves as a modern replacement for the legacy D3DX library.

## Use cases
- render 2D sprites and text in a DirectX 12 game
- load DDS and WIC textures in Direct3D 12
- draw common geometric primitives like cubes and spheres
- manage descriptor heaps and graphics memory in D3D 12
- add gamepad, keyboard, and mouse input to a Windows game
- play audio via XAudio2 in a C++ game
- replace the legacy D3DX library in a DirectX 12 project

## When to choose
- writing a C++ DirectX 12 game or sample for Windows, Xbox, or UWP
- migrating from XNA or D3DX to Direct3D 12
- you want ready-made shaders, sprite batching, and input helpers without a full engine

## When to avoid
- targeting DirectX 11 or Vulkan instead of Direct3D 12
- you need a full-featured game engine rather than helper classes
- developing for non-Windows/non-Xbox platforms

## Facets
- artifact type: library
- maturity: stable
- function: graphics, game-engine, ui-components, audio-processing, image-processing
- domain: graphics, developer-tools
- platform: windows, cpp, cross-platform
- tags: directx-12, direct3d, game-development, xbox, uwp, rendering, sprites, shaders, texture-loading, audio

## Member repositories
- microsoft/DirectXTK12 (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:31.012402+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:28:47.442318+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/DirectXTK12 (fetched 2026-08-28T04:05:31.012402+00:00, sha bb3fe3a950d8)
  - homepage: https://walbourn.github.io/directx-tool-kit-for-directx-12/ (fetched 2026-08-29T11:06:38.761906+00:00, sha 250c9bb5cc9d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
