Glslang-13.1.1

Introduction to Glslang

The Glslang package contains an frontend and validator for OpenGL, OpenGL ES, and Vulkan shaders.

[注記]

注記

LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。

Package Information

Glslang Dependencies

Required

CMake-3.28.1 and SPIRV-Tools-2023.5.rc1

Installation of Glslang

Install Glslang by running the following commands:

mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=/usr     \
      -DCMAKE_BUILD_TYPE=Release      \
      -DALLOW_EXTERNAL_SPIRV_TOOLS=ON \
      -DBUILD_SHARED_LIBS=ON          \
      -G Ninja .. &&
ninja

To test the results, issue: ninja test.

Now, as the root user:

ninja install

Command Explanations

-DALLOW_EXTERNAL_SPIRV_TOOLS=ON: This switch allows the build system to use the system-installed copy of SPIRV-Tools-2023.5.rc1, instead of downloading and installing it's own copy.

-DBUILD_SHARED_LIBS=ON: This switch builds shared versions of the libraries, and does not install static versions of them.

Contents

Installed Programs: glslang, glslang-validator (symlink to glslang), and spirv-remap
Installed Libraries: libglslang.so, libglslang-default-resource-limits.so, libHLSL.so, libSPIRV.so, and libSPVRemapper.so
Installed Directories: /usr/include/glslang and /usr/lib/cmake/glslang

Short Descriptions

glslang

provides a front end and validator for OpenGL, OpenGL ES, and Vulkan shaders

libglslang.so

contains functions that provide a front-end and validator for OpenGL, OpenGL ES, and Vulkan shaders to other programs

libHLSL.so

provides a front-end for shaders that are in HLSL format

libSPIRV.so

provides a front-end and generator for SPIR-V binaries

libSPVRemapper.so

provides a remapper for SPIR-V binaries