From 4dd58180d761004468450df47c61912c3b88d4d4 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 24 Mar 2020 21:19:17 -0700 Subject: [PATCH] Minor shader compile script update --- DirectXTex/Shaders/CompileShaders.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DirectXTex/Shaders/CompileShaders.cmd b/DirectXTex/Shaders/CompileShaders.cmd index acfea55..5949ac9 100644 --- a/DirectXTex/Shaders/CompileShaders.cmd +++ b/DirectXTex/Shaders/CompileShaders.cmd @@ -7,12 +7,12 @@ set error=0 set FXCOPTS=/nologo /WX /Ges /Zi /Zpc /Qstrip_reflect /Qstrip_debug +set PCDXC="%WindowsSdkVerBinPath%\x86\fxc.exe" +if exist %PCFXC% goto continue set PCFXC="%WindowsSdkBinPath%%WindowsSDKVersion%\x86\fxc.exe" if exist %PCFXC% goto continue set PCFXC="%WindowsSdkDir%bin\%WindowsSDKVersion%\x86\fxc.exe" if exist %PCFXC% goto continue -set PCFXC="%WindowsSdkDir%bin\x86\fxc.exe" -if exist %PCFXC% goto continue set PCFXC=fxc.exe