#!/bin/sh
# Compile the wallpaper's shader to the .qsb that Qt 6 loads.
#
# The .qsb is committed, so neither building the packages nor CI needs
# a shader compiler; re-run this after editing moire/shaders/.
#
# Needs `qsb` from Qt Shader Tools (qt6-shadertools-devel on openSUSE,
# qt6-shader-baker on Debian) or the one inside the PySide6-Addons wheel
# (site-packages/PySide6/qsb). Keep it at Qt 6.8 or older: newer qsb
# files may not load in an older Qt, and 6.8 is what Debian stable
# ships.
#
# QSB=/path/to/qsb tools/shaders.sh
set -eu
cd "$(dirname "$0")/.."
QSB=${QSB:-$(command -v qsb || command -v pyside6-qsb)}
"$QSB" --glsl "100 es,120,150" --hlsl 50 --msl 12 \
-o moire/theme/contents/ui/field.frag.qsb moire/shaders/field.frag
echo "wrote moire/theme/contents/ui/field.frag.qsb"
neiam
/neiam-devices
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
804 B · text
History
f629a67