# microsoft/DirectX-Graphics-Samples

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.

Repository: https://github.com/microsoft/DirectX-Graphics-Samples
Canonical: https://ross.abutalabs.com/products/directx-graphics-samples
Language: C++
License: MIT
License Family: permissive
Last push: 2026-08-14T18:48:25+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 24, longevity 100
- inputs: {"age_days": 4109, "days_push": 19, "days_rel": 293, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6820, forks 2173 (observed 2026-08-28T04:09:48.821742+00:00)

## What it is
A collection of official DirectX 12 graphics samples from Microsoft demonstrating how to build graphics-intensive applications on Windows. It includes bite-sized API samples, DirectX 12 Ultimate features like mesh shaders, variable rate shading, and raytracing, plus guides such as Advanced Shader Delivery.

## Use cases
- learn DirectX 12 graphics programming
- see examples of DirectX Raytracing (DXR)
- understand mesh shaders and variable rate shading
- reduce shader compilation stutter with precompiled shaders
- get started with GPU multiengine programming
- reference sample code for graphics-intensive Windows apps

## When to choose
- you are learning or teaching DirectX 12 on Windows
- you need official example code for DX12 Ultimate features like raytracing or mesh shaders
- you want reference implementations of graphics techniques in C++

## When to avoid
- you target OpenGL, Vulkan, or non-Windows platforms
- you need a ready-made game engine rather than educational samples
- you work with older DirectX 9/11 APIs

## Facets
- artifact type: learning-resource
- maturity: active
- function: graphics, simulation, developer-tools
- domain: graphics, windows, tutorials
- platform: windows, cpp
- tags: directx12, directx, d3d12, raytracing, gpu, samples, shaders, rendering, game-development

## Member repositories
- microsoft/DirectX-Graphics-Samples (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:48.821742+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-29T17:41:55.469366+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/DirectX-Graphics-Samples (fetched 2026-08-28T04:09:48.821742+00:00, sha 4ddc675e90b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
