From 42445c4474563c26a5f00d058b9f17bbc9018944 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 14 Oct 2021 15:55:55 -0700 Subject: [PATCH] Fixed shader script --- DirectXTex/Shaders/CompileShaders.cmd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DirectXTex/Shaders/CompileShaders.cmd b/DirectXTex/Shaders/CompileShaders.cmd index 3ce5e6bc..65f54a75 100644 --- a/DirectXTex/Shaders/CompileShaders.cmd +++ b/DirectXTex/Shaders/CompileShaders.cmd @@ -17,7 +17,10 @@ if exist %PCFXC% goto continue set PCFXC=fxc.exe :continue -@if %CompileShadersOutput%.==. set CompileShadersOutput=Compiled +if not defined CompileShadersOutput set CompileShadersOutput=Compiled +set StrTrim=%CompileShadersOutput%## +set StrTrim=%StrTrim: ##=% +set CompileShadersOutput=%StrTrim:##=% @if not exist %CompileShadersOutput% mkdir %CompileShadersOutput% call :CompileShader BC7Encode TryMode456CS call :CompileShader BC7Encode TryMode137CS