# 使用 Homebrew, apt, MacPorts, Nix, pacman, zypper 安装 spirv-cross

查看 spirv-cross 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:spirv-cross
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install spirv-cross
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install spirv-cross
```

  证据: MacPorts ports tree: graphics/spirv-cross/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install spirv-cross
```

  证据: Debian stable package indexes: spirv-cross from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#spirv-cross
```

  证据: nixpkgs package indexes: pkgs/by-name/sp/spirv-cross/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S spirv-cross
```

  证据: Arch Linux sync databases: spirv-cross from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install spirv-cross
```

  证据: openSUSE Tumbleweed package metadata: spirv-cross from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:spirv-cross
- **软件包管理器:** Homebrew
- **版本:** 1.4.357.0
- **来源摘要:** Performing reflection and disassembling SPIR-V
- **主页:** <https://github.com/KhronosGroup/SPIRV-Cross>
- **仓库:** <https://github.com/KhronosGroup/SPIRV-Cross>
- **最后更新:** 2026-07-28T21:14:40Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- spirv-cross (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.4.357.0
## 项目历史与用法

SPIRV-Cross is a Khronos Group tool and library for parsing SPIR-V, converting it to shader languages such as GLSL, MSL, and HLSL, and producing reflection data.

### 项目历史

The GitHub repository was created in April 2016, early in the Vulkan/SPIR-V tooling era. The README describes SPIRV-Cross as a tool designed for parsing and converting SPIR-V to other shader languages.

### 采用历史

SPIRV-Cross became part of graphics developer package sets because SPIR-V tooling is needed outside full SDK installs. The input facts list Homebrew, Debian/Ubuntu development packages, MacPorts, Nix, Arch, and openSUSE packages.

### 使用方式

The README documents both library features and direct CLI examples such as compiling a shader to SPIR-V with glslangValidator and then running `spirv-cross` to emit GLSL ES, desktop GLSL, or reflected output.

### 为什么软件包爱好者会关心

For package maintainers, SPIRV-Cross sits at a useful boundary: it is a standalone CLI, a C/C++ library, and a bridge between Vulkan-era intermediate representation and platform shader languages, so downstream tools want it available as a normal dependency.

### 时间线

- 2016: GitHub repository created.
- 2018: GitHub wiki home page edited with a Reflection API user guide link.
- 2023: README records branch rename from master to main on January 12.
- 2026: GitHub tags show Vulkan SDK-tagged releases, including vulkan-sdk-1.4.350.1.

### Related projects

- SPIR-V
- Vulkan SDK
- glslangValidator
- GLSL
- HLSL
- Metal Shading Language

### 来源

- <https://api.github.com/repos/KhronosGroup/SPIRV-Cross>
- <https://github.com/KhronosGroup/SPIRV-Cross>
- <https://github.com/KhronosGroup/SPIRV-Cross/tags>
- <https://github.com/KhronosGroup/SPIRV-Cross/wiki>
- input source_facts.package-manager


## 安全说明

没有找到 spirv-cross 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- Debian apt - libspirv-cross-c-shared-dev - 2021.01.15+1.4.304.1-2: normalized package name match | Debian stable package indexes: libspirv-cross-c-shared-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Convert SPIR-V to other shader languages (development files) | https://github.com/KhronosGroup/SPIRV-Cross
- Debian apt - libspirv-cross-c-shared0 - 2021.01.15+1.4.304.1-2: normalized package name match | Debian stable package indexes: libspirv-cross-c-shared0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Convert SPIR-V to other shader languages (shared library) | https://github.com/KhronosGroup/SPIRV-Cross
- Debian apt - spirv-cross - 2021.01.15+1.4.304.1-2: normalized package name match | Debian stable package indexes: spirv-cross from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Convert SPIR-V to other shader languages (CLI tool) | https://github.com/KhronosGroup/SPIRV-Cross
- Nix - spirv-cross: normalized package name match | nixpkgs package indexes: pkgs/by-name/sp/spirv-cross/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libspirv-cross-c-shared-dev - 2021.01.15+1.3.239.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libspirv-cross-c-shared-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Convert SPIR-V to other shader languages (development files) | https://github.com/KhronosGroup/SPIRV-Cross
- Ubuntu apt - libspirv-cross-c-shared0 - 2021.01.15+1.3.239.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libspirv-cross-c-shared0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Convert SPIR-V to other shader languages (shared library) | https://github.com/KhronosGroup/SPIRV-Cross
- Ubuntu apt - spirv-cross - 2021.01.15+1.3.239.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: spirv-cross from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Convert SPIR-V to other shader languages (CLI tool) | https://github.com/KhronosGroup/SPIRV-Cross
- pacman - spirv-cross - 1.4.357.0-1: normalized package name match | Arch Linux sync databases: spirv-cross from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Tool and library for parsing and converting SPIR-V to other shader languages | https://github.com/KhronosGroup/SPIRV-Cross/
- zypper - libspirv-cross-c-shared0 - 1.4.313.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: libspirv-cross-c-shared0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library for SPIR-V reflection and disassembly | https://github.com/KhronosGroup/SPIRV-Cross
- zypper - spirv-cross - 1.4.313.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: spirv-cross from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool and library for SPIR-V reflection and disassembly | https://github.com/KhronosGroup/SPIRV-Cross
- zypper - spirv-cross-devel - 1.4.313.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: spirv-cross-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development headers for the SPIRV-Cross library | https://github.com/KhronosGroup/SPIRV-Cross
- MacPorts - spirv-cross: normalized package name match | MacPorts ports tree: graphics/spirv-cross/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/spirv-cross.yml](https://github.com/mxcl/pkgdb/blob/main/combined/spirv-cross.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
