aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-28 01:43:35 +0100
committerSven Gothel <[email protected]>2015-03-28 01:43:35 +0100
commit4207f9c279e832e3afcb3f5fc6cd8d84cb4cfe4c (patch)
treecf3671058d55b47ab6cb6f36f369928606137628 /LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat
parentc29cd1a2fbff6282bab956ad61661ac9d48c4e6e (diff)
Bump OculusVR RIFT SDK to 0.5.0.1vanilla_0.5.0.1
Diffstat (limited to 'LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat')
-rw-r--r--LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat7
1 files changed, 5 insertions, 2 deletions
diff --git a/LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat b/LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat
index 76f17c2..5b108dc 100644
--- a/LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat
+++ b/LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat
@@ -3,13 +3,16 @@ pushd %~dp0
echo Compiling shader and packing into header: %~2
setlocal
-set PATH=%PATH%;"%DXSDK_DIR%Utilities\bin\x86\"
-fxc.exe /nologo /E main /T ps_4_0 /Fo "%1" %2
+fxc.exe /nologo /E main /T ps_4_1 /Fo "%1" %2
bin2header.exe "%1"
echo Generating shader reflection data for %1
ShaderReflector "%1" "%1_refl.h"
+echo /* Concatenating shader reflector output:*/ >> "%1.h"
+type "%1_refl.h" >> "%1.h"
+del "%1_refl.h"
+
del "%1"
endlocal
popd