diff options
Diffstat (limited to 'LibOVR/Src/CAPI/D3D1X/Shaders/genComputeShaderHeader.bat')
-rw-r--r-- | LibOVR/Src/CAPI/D3D1X/Shaders/genComputeShaderHeader.bat | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/LibOVR/Src/CAPI/D3D1X/Shaders/genComputeShaderHeader.bat b/LibOVR/Src/CAPI/D3D1X/Shaders/genComputeShaderHeader.bat index 784bc86..0a67677 100644 --- a/LibOVR/Src/CAPI/D3D1X/Shaders/genComputeShaderHeader.bat +++ b/LibOVR/Src/CAPI/D3D1X/Shaders/genComputeShaderHeader.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 cs_5_0 /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
|