microsoft/directxshadercompiler

This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 28 minutes ago
Added to GitGenius on September 19th, 2026
Created on December 7th, 2016
Open Issues & Pull Requests: 770 (+1)
GitHub issues: Enabled
Number of forks: 900
Total Stargazers: 3,654 (+0)
Total Subscribers: 145 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.1 days
Mean response time: 53.6 days
90th percentile: 128.0 days
Tracked items: 956

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Roughly one issue in four opened in the past year never receives a reply. 64% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Work labelled "hlsl2021" is answered fastest, typically in about 9 hours, while "validation" waits about 5 months. 33% of tracked open issues have had no activity in three months. Only 54% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 477
New in 7 days: 6
Closed in 7 days: 2
Avg open age: 526 days
Stale 30+ days: 415
Stale 90+ days: 310

Recent activity

Opened in 7 days: 6
Closed in 7 days: 2
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (611)
  • spirv (279)
  • needs-triage (266)
  • enhancement (120)
  • tech-debt (37)
  • crash (35)
  • diagnostic (35)
  • validation (34)

Detailed Description

DirectX Shader Compiler is a compiler that translates High-Level Shader Language programs into DirectX Intermediate Language for DirectX and Standard Portable Intermediate Representation for Vulkan.

The tool solves the problem of compiling shader programs for GPU execution across different graphics APIs. It builds on LLVM and Clang, modified to accept HLSL as input and emit validated shader binaries that GPU drivers can consume. The compiler supports shader model 6.0 and higher, providing both command-line tools and componentized libraries for integration into applications.

Developers building graphics or compute applications with DirectX or Vulkan should consider this tool. It suits projects that need to compile HLSL shaders to multiple target representations. The project provides pre-built binaries through multiple channels including NuGet packages, the Windows SDK, and the Vulkan SDK, reducing setup friction. The compiler offers a command-line driver, a DLL-based compiler interface, validation tools, and C++ headers for library integration. Beyond DirectX support, the tool can target SPIR-V for Vulkan applications, making it suitable for cross-platform shader development.

The project maintains active development across language evolution and hardware capability exposure. Contributions from the broader community are explicitly welcomed, as evidenced by the SPIR-V code generation feature developed through community involvement. The tool is designed with compatibility and supportability as core principles, and the project provides documentation and wiki resources to support both users and contributors.