aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/shaders/embed.sh
blob: acd7a1199fa4c99d211b7228179fb5f07e4f1f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -eu

var=${1:-data}
hex="$(od -A n -t x1 -v)"

echo "static const char $var[] = {"
for byte in $hex; do
	echo "	0x$byte,"
done
echo "	0x00,"
echo "};"