Skip to content

Commit 5208d1c

Browse files
committed
We can just build all the shaders at once
1 parent b0cea8d commit 5208d1c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

examples/testgputext/shaders/build-shaders.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,7 @@ make-header() {
1010
}
1111

1212
# Requires shadercross CLI installed from SDL_shadercross
13-
for filename in *.vert.hlsl; do
14-
if [ -f "$filename" ]; then
15-
shadercross "$filename" -o "${filename/.hlsl/.spv}"
16-
make-header "${filename/.hlsl/.spv}"
17-
shadercross "$filename" -o "${filename/.hlsl/.msl}"
18-
make-header "${filename/.hlsl/.msl}"
19-
shadercross "$filename" -o "${filename/.hlsl/.dxil}"
20-
make-header "${filename/.hlsl/.dxil}"
21-
fi
22-
done
23-
24-
for filename in *.frag.hlsl; do
13+
for filename in *.hlsl; do
2514
if [ -f "$filename" ]; then
2615
shadercross "$filename" -o "${filename/.hlsl/.spv}"
2716
make-header "${filename/.hlsl/.spv}"

0 commit comments

Comments
 (0)