DirectX Shader Compiler is a Microsoft development toolkit based on LLVM and Clang for compiling High-Level Shading Language programs into GPU-compatible shader binaries. It supports Shader Model 6.0 and later through the DirectX Intermediate Language format. Its compilation pipeline incorporates shader optimization, assembly, disassembly, and validation capabilities. An alternative SPIR-V backend enables HLSL shader compilation for Vulkan-compatible environments. Source builds can optionally integrate Apple's Metal Shader Converter to generate Metal shader libraries. Developers can embed compiler functionality through dynamic libraries and C++ programming interfaces. Dedicated validation tools verify compiled DXIL representations. DXC is distributed through standalone releases, NuGet, the Windows SDK, and the Vulkan SDK.
Features
- HLSL shader compilation targeting Shader Model 6.0 and later through DirectX Intermediate Language generation
- LLVM and Clang-based compilation architecture with integrated shader optimization and code generation
- Alternative SPIR-V code generation for Vulkan-compatible graphics applications and rendering engines
- Optional Metal shader library generation through Apple Metal Shader Converter integration in source builds
- Dedicated DXIL validation, hashing, assembly, and disassembly tools for compiled shader analysis
- Embeddable compiler libraries with C++ programming interfaces and Windows or Vulkan SDK integration