#!/bin/sh # Rebuild Qt shader packs (.qsb) from GLSL sources. Requires qsb from Qt Shader # Tools matching the runtime Qt major version; with Nix: # nix shell nixpkgs#qt6.qtshadertools -c ./scripts/build-shaders set -eu project_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) for source in "$project_dir"/quickshell/lock/shaders/*.frag; do qsb --glsl "100 es,120,150" --hlsl 50 --msl 12 -o "$source.qsb" "$source" done