slang

Making it easier to work with shaders

Latest version: 2026.16

Add to xmake.lua

add_requires("slang 2026.16")

Learn how to add and link packages with Xmake →

Information

License
MIT
Recipe updated
2026-10-13T10:07:05.000Z

Platforms

  • linux: x86_64
  • macosx: x86_64, arm64
  • windows: x64

Options

embed_stdlib
Build slang with an embedded version of the stdlib · Type: boolean · Default: false
embed_stdlib_source
Embed stdlib source in the binary · Type: boolean · Default: true
full_ir_validation
Enable full IR validation (SLOW!) · Type: boolean · Default: false
gfx
Enable gfx targets · Type: boolean · Default: false
slang_glslang
Enable glslang dependency and slang-glslang wrapper target · Type: boolean · Default: false
slang_llvm_flavor
How to get or build slang-llvm (available options: FETCH_BINARY, USE_SYSTEM_LLVM, DISABLE) · Type: string · Default: DISABLE
slangc
Enable standalone compiler target · Type: boolean · Default: true
slangd
Enable language server target · Type: boolean · Default: false
slangrt
Enable runtime target · Type: boolean · Default: false

Versions

  • v2024.1.17
  • v2024.1.18
  • v2025.6.3
  • v2025.11.0
  • v2026.13
  • v2026.13.1
  • v2026.14.1
  • v2026.16

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "slang 2026.16"

show info

xrepo info "slang"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("slang 2026.16")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("slang")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "slang 2026.16" shell