Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, scoop, zypper 安装 glslang

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install glslang

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install glslang

MacPorts ports tree · graphics/glslang/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add glslang

Alpine Linux edge package indexes · glslang · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install glslang

Fedora Rawhide package metadata · glslang · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#glslang

nixpkgs package indexes · pkgs/by-name/gl/glslang/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S glslang

Arch Linux sync databases · glslang · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install glslang-dev

Debian stable package indexes · glslang-dev · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install glslang-devel

openSUSE Tumbleweed package metadata · glslang-devel · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/glslang

Scoop official bucket manifest trees · bucket/glslang.json · 来源: api.github.com

概览

软件包摘要

OpenGL and OpenGL ES reference compiler for shading languages

命令和别名

  • glslang
  • glslangValidator

历史

项目历史与用法

glslang is Khronos Group's reference front end for GLSL and ESSL, with a SPIR-V back end and a standalone command-line wrapper. In package-manager form it is best known through the `glslangValidator` and `glslang` executables used by graphics developers, engine build systems, and shader toolchains.

项目历史

The project descends from the OpenGL and OpenGL ES reference compiler work maintained by Khronos. Its public KhronosGroup GitHub repository was created in 2015, the same period in which SPIR-V and Vulkan-era shader tooling moved into more open, packageable workflows. The README describes the GLSL and ESSL front end as a reference validator whose results carry similar weight to the specifications, and it describes the AST-to-SPIR-V back end as virtually complete.

glslang grew beyond a GLSL syntax checker into a central shader translation and validation component. It added a partial HLSL front end, a reflection API, CMake and GN build support, and release automation that publishes binaries from tested tree states. The project documentation also records migration of `spirv-remap` functionality into SPIRV-Tools as `spirv-opt` functionality, illustrating how Khronos shader tooling was split into focused companion projects.

采用历史

Adoption followed the rise of Vulkan and SPIR-V: graphics projects needed a standard way to turn human-written shader languages into SPIR-V modules and to validate shaders against Khronos rules. The repository's long-lived presence under the KhronosGroup organization, several thousand stars, and packaging across Homebrew, Debian, Fedora, Arch, Nix, MacPorts, Scoop, and other distributions reflect its role as shared infrastructure rather than a single-application utility.

For package maintainers, glslang became a dependency-sized building block for Vulkan SDKs, rendering engines, CI checks, and shader asset pipelines. Its value is partly cultural: installing it gives a reproducible command-line validator that tracks Khronos reference behavior more closely than ad hoc compiler front ends.

使用方式

Practitioners use glslang by passing shader files to the standalone wrapper. File extensions such as `.vert`, `.frag`, `.comp`, and ray-tracing-stage extensions select stage-specific rules, and the tool prints diagnostics, AST information, or SPIR-V output depending on options. Developers also build it from source through CMake or GN when integrating it into larger graphics SDKs or engine build systems.

Typical use cases include validating shaders before they enter a game or visualization build, compiling GLSL or ESSL to SPIR-V for Vulkan pipelines, checking generated shader code in CI, and inspecting reflection information for engine resource binding code.

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

glslang matters to package users because it is small enough to install as a command-line tool but authoritative enough to sit in serious graphics build graphs. It also demonstrates the Khronos ecosystem pattern: glslang handles language front-end and SPIR-V generation work, while adjacent packages such as SPIRV-Tools handle optimization and lower-level binary manipulation.

时间线

  • 2015: KhronosGroup created the public GitHub repository.
  • 2015: Vulkan and SPIR-V-era workflows made reference shader-to-SPIR-V tooling broadly package-relevant.
  • 2026: The README announced deprecation of the HLSL front end with migration guidance.

Related projects

  • SPIRV-Tools provides SPIR-V optimization, validation, and binary tooling used beside glslang.
  • Vulkan SDK distributions and rendering engines commonly pair glslang with shader compilation and asset-pipeline tooling.
  • Khronos specifications for OpenGL, OpenGL ES, Vulkan, and SPIR-V define the standards context that gives glslang its reference-tool role.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
glslangcli全局可执行文件
glslangValidatorcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本16.4.0
管理器更新时间2026-07-14
本地数据OK
上游当前
检测到的最新版本16.4.0

https://github.com/KhronosGroup/glslang

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:glslang
版本16.4.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/glslang
主页https://www.khronos.org/opengles/sdk/Reference-Compiler/
仓库https://github.com/KhronosGroup/glslang
上游文档https://github.com/KhronosGroup/glslang#readme
许可证BSD-3-Clause AND GPL-3.0-or-later AND MIT AND Apache-2.0
源码归档https://github.com/KhronosGroup/glslang/archive/refs/tags/16.4.0.tar.gz
最后更新2026-07-14T22:39:44Z
Pulseupdated
依赖spirv-headers, spirv-tools
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameglslang
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

glslang-dev 15.1.0+1.4.309.0-1

OpenGL and OpenGL ES shader front end and validator -- development files

https://github.com/KhronosGroup/glslang

sudo apt install glslang-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: glslang
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Glslang
Debian stable package indexes · deb.debian.org · Debian stable package indexes: glslang-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

glslang-tools 15.1.0+1.4.309.0-1

OpenGL and OpenGL ES shader front end and validator -- tools

https://github.com/KhronosGroup/glslang

sudo apt install glslang-tools
  • Section: libdevel
  • Architecture: amd64
  • Source Package: glslang
  • 3 依赖
  • normalized package name match
  • 匹配方式:Glslang
Debian stable package indexes · deb.debian.org · Debian stable package indexes: glslang-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

glslang

nix profile install nixpkgs#glslang
  • normalized package name match
  • 匹配方式:Glslang
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gl/glslang/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

glslang-dev 14.0.0-2

OpenGL and OpenGL ES shader front end and validator -- development files

https://github.com/KhronosGroup/glslang

sudo apt install glslang-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: glslang
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Glslang
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: glslang-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

glslang-tools 14.0.0-2

OpenGL and OpenGL ES shader front end and validator -- tools

https://github.com/KhronosGroup/glslang

sudo apt install glslang-tools
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: glslang
  • 3 依赖
  • normalized package name match
  • 匹配方式:Glslang
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: glslang-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

glslang 1.4.341.0-r0

Khronos reference front-end for GLSL, ESSL, and sample SPIR-V generator

https://github.com/KhronosGroup/glslang

sudo apk add glslang
  • License: BSD-3-Clause AND BSD-2-Clause AND MIT AND Apache-2.0 AND GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: glslang
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glslang
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glslang from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glslang-dev 1.4.341.0-r0

Khronos reference front-end for GLSL, ESSL, and sample SPIR-V generator (development files)

https://github.com/KhronosGroup/glslang

sudo apk add glslang-dev
  • License: BSD-3-Clause AND BSD-2-Clause AND MIT AND Apache-2.0 AND GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: glslang
  • 1 依赖
  • normalized package name match
  • 匹配方式:Glslang
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glslang-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glslang-libs 1.4.341.0-r0

Khronos reference front-end for GLSL, ESSL, and sample SPIR-V generator (libraries)

https://github.com/KhronosGroup/glslang

sudo apk add glslang-libs
  • License: BSD-3-Clause AND BSD-2-Clause AND MIT AND Apache-2.0 AND GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: glslang
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glslang
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glslang-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glslang-static 1.4.341.0-r0

Khronos reference front-end for GLSL, ESSL, and sample SPIR-V generator (static library)

https://github.com/KhronosGroup/glslang

sudo apk add glslang-static
  • License: BSD-3-Clause AND BSD-2-Clause AND MIT AND Apache-2.0 AND GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: glslang
  • normalized package name match
  • 匹配方式:Glslang
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glslang-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

glslang 16.2.0-1.fc45

OpenGL and OpenGL ES shader front end and validator

https://github.com/KhronosGroup/glslang

sudo dnf install glslang
  • License: BSD-2-Clause AND BSD-3-Clause AND GPL-3.0-or-later AND Apache-2.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: glslang
  • 7 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glslang
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glslang from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

glslang-devel 16.2.0-1.fc45

Development files for glslang

https://github.com/KhronosGroup/glslang

sudo dnf install glslang-devel
  • License: BSD-2-Clause AND BSD-3-Clause AND GPL-3.0-or-later AND Apache-2.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: glslang
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Glslang
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glslang-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

glslang 1:1.4.350.0-1

OpenGL and OpenGL ES shader front end and validator

https://github.com/KhronosGroup/glslang

sudo pacman -S glslang
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Glslang
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: glslang from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

glslang-devel 16.3.0-1.3

OpenGL and OpenGL ES shader front end and validator

https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/

sudo zypper install glslang-devel
  • License: BSD-3-Clause
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: glslang
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Glslang
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: glslang-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

glslang-nonstd-devel 16.3.0-1.3

Secondary set of header files for glslang

https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/

sudo zypper install glslang-nonstd-devel
  • License: BSD-3-Clause
  • Category: Development/Libraries/C and C++
  • Architecture: noarch
  • Source Package: glslang
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Glslang
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: glslang-nonstd-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libglslang16 16.3.0-1.3

OpenGL and OpenGL ES shader front end implementation

https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/

sudo zypper install libglslang16
  • License: BSD-3-Clause
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: glslang
  • 7 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Glslang
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libglslang16 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libglslang16-32bit 16.3.0-1.3

OpenGL and OpenGL ES shader front end implementation

https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/

sudo zypper install libglslang16-32bit
  • License: BSD-3-Clause
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: glslang
  • 8 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Glslang
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libglslang16-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment