macOS
brew install glslanglocal Homebrew formula metadata
sudo port install glslangMacPorts ports tree · graphics/glslang/Portfile · 来源: api.github.com
安装
brew install glslanglocal Homebrew formula metadata
sudo port install glslangMacPorts ports tree · graphics/glslang/Portfile · 来源: api.github.com
sudo apk add glslangAlpine Linux edge package indexes · glslang · 来源: dl-cdn.alpinelinux.org
sudo dnf install glslangFedora Rawhide package metadata · glslang · 来源: dl.fedoraproject.org
nix profile install nixpkgs#glslangnixpkgs package indexes · pkgs/by-name/gl/glslang/package.nix · 来源: api.github.com
sudo pacman -S glslangArch Linux sync databases · glslang · 来源: geo.mirror.pkgbuild.com
sudo apt install glslang-devDebian stable package indexes · glslang-dev · 来源: deb.debian.org
sudo zypper install glslang-developenSUSE Tumbleweed package metadata · glslang-devel · 来源: download.opensuse.org
scoop install main/glslangScoop official bucket manifest trees · bucket/glslang.json · 来源: api.github.com
概览
OpenGL and OpenGL ES reference compiler for shading languages
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
glslang | cli | 全局可执行文件 | |
glslangValidator | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/KhronosGroup/glslang
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | spirv-headers, spirv-tools |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | glslang |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-devglslang-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-toolsglslang
nix profile install nixpkgs#glslangglslang-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-devglslang-tools 14.0.0-2
OpenGL and OpenGL ES shader front end and validator -- tools
https://github.com/KhronosGroup/glslang
sudo apt install glslang-toolsglslang 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 glslangglslang-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-devglslang-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-libsglslang-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-staticglslang 16.2.0-1.fc45
OpenGL and OpenGL ES shader front end and validator
https://github.com/KhronosGroup/glslang
sudo dnf install glslangglslang-devel 16.2.0-1.fc45
Development files for glslang
https://github.com/KhronosGroup/glslang
sudo dnf install glslang-develglslang 1:1.4.350.0-1
OpenGL and OpenGL ES shader front end and validator
https://github.com/KhronosGroup/glslang
sudo pacman -S glslangglslang-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-develglslang-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-devellibglslang16 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 libglslang16libglslang16-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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.