Skip to content

Commit

Permalink
Fixed shader script
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Oct 14, 2021
1 parent 8509ae7 commit 2de2aee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DirectXTex/Shaders/CompileShaders.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ if exist %PCFXC% goto continue
set PCFXC=fxc.exe

:continue
@if %CompileShadersOutput%.==. set CompileShadersOutput=Compiled
if not defined CompileShadersOutput (set CompileShadersOutput=Compiled) else (set CompileShadersOutput=%CompileShadersOutput%##
set CompileShadersOutput=%CompileShadersOutput: ##=%
set CompileShadersOutput=%CompileShadersOutput:##=%)
@if not exist %CompileShadersOutput% mkdir %CompileShadersOutput%
call :CompileShader BC7Encode TryMode456CS
call :CompileShader BC7Encode TryMode137CS
Expand Down

1 comment on commit 2de2aee

@walbourn
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to deal with a trailing space in some contexts for the CompileShadersOutput variable.

Please sign in to comment.