forked from cschied/q2vkpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
win_compile_shaders.bat
13 lines (10 loc) · 1020 Bytes
/
win_compile_shaders.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
mkdir shader_vkpt
cd src\refresh\vkpt\shader
for %%a in (*.comp) do glslangValidator --target-env vulkan1.1 -DVKPT_SHADER -DSHADER_STAGE_COMP %%a -o ..\..\..\..\shader_vkpt\%%a.spv
for %%a in (*.vert) do glslangValidator --target-env vulkan1.1 -DVKPT_SHADER -DSHADER_STAGE_VERT %%a -o ..\..\..\..\shader_vkpt\%%a.spv
for %%a in (*.frag) do glslangValidator --target-env vulkan1.1 -DVKPT_SHADER -DSHADER_STAGE_FRAG %%a -o ..\..\..\..\shader_vkpt\%%a.spv
for %%a in (*.rcall) do glslangValidator --target-env vulkan1.1 -DVKPT_SHADER -DSHADER_STAGE_RCALL %%a -o ..\..\..\..\shader_vkpt\%%a.spv
for %%a in (*.rchit) do glslangValidator --target-env vulkan1.1 -DVKPT_SHADER -DSHADER_STAGE_RCHIT %%a -o ..\..\..\..\shader_vkpt\%%a.spv
for %%a in (*.rgen) do glslangValidator --target-env vulkan1.1 -DVKPT_SHADER -DSHADER_STAGE_RGEN %%a -o ..\..\..\..\shader_vkpt\%%a.spv
for %%a in (*.rmiss) do glslangValidator --target-env vulkan1.1 -DVKPT_SHADER -DSHADER_STAGE_RMISS %%a -o ..\..\..\..\shader_vkpt\%%a.spv
cd ..\..\..\..