diff options
author | Sven Gothel <[email protected]> | 2014-06-19 17:08:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-06-19 17:08:45 +0200 |
commit | 33385ba1bb04682cef372adb0cd9f63b1fe55ca7 (patch) | |
tree | 30858bcf355f78b0e69c0f9a17d2fd28e7ed926a /LibOVR/Src/CAPI/Shaders/genPixelShaderHeader.bat | |
parent | d9a584844a60542519d813b5dc1a62428f14a0ae (diff) |
Merge OculusSDK 0.3.2 Windows Source Code
Diffstat (limited to 'LibOVR/Src/CAPI/Shaders/genPixelShaderHeader.bat')
-rw-r--r-- | LibOVR/Src/CAPI/Shaders/genPixelShaderHeader.bat | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/LibOVR/Src/CAPI/Shaders/genPixelShaderHeader.bat b/LibOVR/Src/CAPI/Shaders/genPixelShaderHeader.bat new file mode 100644 index 0000000..76f17c2 --- /dev/null +++ b/LibOVR/Src/CAPI/Shaders/genPixelShaderHeader.bat @@ -0,0 +1,15 @@ +@echo off
+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
+bin2header.exe "%1"
+
+echo Generating shader reflection data for %1
+ShaderReflector "%1" "%1_refl.h"
+
+del "%1"
+endlocal
+popd
|