KhronosGroup/SPIRV-Cross
SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages. observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 95
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3803
- days_rel: n/a
- days_push: 33
- n_releases_24m: 0
Adoption not part of the score
2493 stars · 702 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
SPIRV-Cross is a tool and C++ library from Khronos for parsing SPIR-V binaries, performing reflection, and decompiling them back to high-level shader languages like GLSL, HLSL, and Metal Shading Language. It also emits JSON reflection data and provides APIs for building Vulkan pipeline layouts.
Use cases
- convert SPIR-V bytecode back to readable GLSL
- translate SPIR-V shaders to Metal Shading Language for iOS/macOS
- decompile SPIR-V to HLSL for Direct3D
- reflect on SPIR-V to build Vulkan pipeline layouts
- dump shader reflection metadata as JSON
- port Vulkan shaders to Metal or DirectX
When to choose
- you need to consume SPIR-V and emit human-readable shader source
- you are building a Vulkan-to-Metal or Vulkan-to-D3D translation layer
- you need shader reflection to set up Vulkan descriptor sets and pipeline layouts
- you want a mature, Khronos-maintained C++ library with wide platform support
When to avoid
- you only need to compile high-level shaders to SPIR-V (use glslang or DXC instead)
- you need the deprecated C++ shader output feature
- you want a runtime shader compiler rather than a cross-compiler/decompiler
Facets
library · maturity stable
compiler parser developer-tools graphics developer-tools compilers windows cross-platform cpp spir-v shader-translation glsl hlsl metal-shading-language vulkan reflection disassembler khronos game-development linux macos android ios
1 source
- readme: https://github.com/KhronosGroup/SPIRV-Cross · fetched 2026-08-28 · 9830e259af2d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| KhronosGroup/SPIRV-Cross | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="KhronosGroup/SPIRV-Cross")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem