Reference

DirectX shader cache

The DirectX Shader Cache is the Windows folder where the DirectX graphics system stores compiled shaders for games and apps. It is reclaimable junk: Windows Disk Cleanup lists it for removal, and DirectX rebuilds it automatically as you run programs again.

WindowsWindows

DirectX shader cache

Also known as: DirectX Shader Cache, DXShaderCache, D3D shader cache

The DirectX Shader Cache is the Windows folder where the DirectX graphics system stores compiled shaders for games and apps. It is reclaimable junk: Windows Disk Cleanup lists it for removal, and DirectX rebuilds it automatically as you run programs again.

  • Windows folder for compiled DirectX shaders
  • Listed as reclaimable in Disk Cleanup
  • Rebuilds automatically; safe to delete

Where it lives and why it grows

DirectX is the Windows graphics layer most PC games use. When a program first renders, DirectX compiles its shaders for your GPU and caches the results so later runs skip that work. The files accumulate under your user profile (the DXCache / D3DSCache folders) and can reach a few gigabytes over time.

A larger cache is not a problem in itself — it speeds up launches. It only matters when you are short on disk space or troubleshooting graphics issues after a driver change.

How to clear it

Open Disk Cleanup (search for "Disk Cleanup" in the Start menu), select your system drive, and tick DirectX Shader Cache, then confirm. Storage Sense can also clear it on a schedule.

Clearing is non-destructive: it removes only compiled shaders, never games, saves, or settings. Expect a slightly slower first launch afterward while DirectX rebuilds the cache.

Related terms

Keep reading the reference.

Act on it

Guides and tools for this topic.