Files
DroidDeck/tools/vkbridge/tests/gen_shaders.sh
T
ahmadandClaude Opus 5.5 d82c42d818 feat(vkbridge): self-checking smoke test, frame dump, WSI extensions and crash log on the server
Smoke test passes 9/9 through the bridge on RADV (dmabuf) and lavapipe (hostptr, UMA model);
vkcube renders correctly over Wayland dma-buf, wl_shm and X11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KZqR8XUE8czvGzEpgSCVQR
2026-10-10 14:27:54 +03:00

13 lines
484 B
Bash
Executable File

#!/bin/bash
# Compiles the test shaders into C arrays (tests/smoke_spv.h). Needs glslangValidator.
set -eu
cd "$(dirname "$0")"
out=smoke_spv.h
echo "/* Generated by gen_shaders.sh from shaders/ - do not edit. */" > $out
for s in shaders/*.comp shaders/*.vert shaders/*.frag; do
name=$(basename "$s" | tr . _)
glslangValidator -V --vn "spv_$name" -o tmp.h "$s" >/dev/null
grep -v '^ *//' tmp.h | sed 's/^const uint32_t/static const uint32_t/' >> $out
rm -f tmp.h
done