shader-slang/slang
Making it easier to work with shaders observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 4.0
- age_days: 3372
- days_rel: 13
- days_push: 7
- n_releases_24m: 123
Adoption not part of the score
5580 stars · 482 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Slang is a shading language and compiler for building large, modular, high-performance GPU shader codebases. It compiles to D3D12, Vulkan, Metal, D3D11, CUDA, and CPU targets, and supports automatic differentiation and PyTorch integration via SlangPy.
Use cases
- write shaders once and compile to multiple graphics APIs
- migrate existing HLSL or GLSL shader codebases to a modular language
- add automatic differentiation to rendering code for neural graphics
- use shader code as GPU kernels in PyTorch training workflows
- precompile shader modules to IR and link at runtime
- manage GPU feature differences across platforms with a capability system
When to choose
- you maintain a large real-time graphics shader codebase needing modularity and portability
- you need one shader source targeting D3D12, Vulkan, Metal, and CUDA
- you are building differentiable rendering or ML-enhanced graphics pipelines
- you want readable generated code for textual targets like MSL and CUDA
When to avoid
- you only need a tiny one-off shader for a single API with no portability needs
- your team is fully invested in an existing HLSL/GLSL toolchain with no migration appetite
- you need a mature formal language specification - it is still a work in progress
Facets
library · maturity active
compiler programming-language graphics machine-learning sdk graphics machine-learning gpu-computing programming-languages compilers windows cpp python cross-platform shading-language hlsl glsl vulkan d3d12 metal cuda spirv automatic-differentiation shader-modules slangpy pytorch game-development linux macos gpu
5 sources
- readme: https://github.com/shader-slang/slang · fetched 2026-08-28 · e0ccfda836dc
- homepage: http://shader-slang.com · fetched 2026-08-29 · 878f10bbacef
- site_page: https://shader-slang.org/docs/getting-started · fetched 2026-08-29 · 9cf6a0bc4a0e
- site_page: https://shader-slang.org/docs · fetched 2026-08-29 · b6d6c9685605
- site_page: https://shader-slang.org/docs/coming-from-hlsl · fetched 2026-08-29 · e9af0545deef
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| shader-slang/slang | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="shader-slang/slang")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem