Skip to content

Commit

Permalink
Use shader optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed Aug 5, 2024
1 parent 75bf753 commit 56ff802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shaders/compile.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ for %%f in ("%script_dir%\*.vert" "%script_dir%\*.frag" "%script_dir%\*.tesc" "%
REM Check if it is a file and not the script itself
if exist "%%f" (
REM Call glslc to compile the file
glslc --target-env=vulkan1.2 "%%f" -o "%%f.spv"
glslc --target-env=vulkan1.2 -O "%%f" -o "%%f.spv"
)
)
2 changes: 1 addition & 1 deletion shaders/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ for file in "$(dirname "$0")"/*.{vert,frag,tesc,tese,geom,comp}; do
# Check if it is a file and not the script itself
if [ -f "$file" ] && [ "$(basename "$file")" != "$script_name" ]; then
# Call glslc to compile the file
glslc --target-env=vulkan1.2 "$file" -o "$file.spv"
glslc --target-env=vulkan1.2 -O "$file" -o "$file.spv"
fi
done

0 comments on commit 56ff802

Please sign in to comment.