aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/CAPI/D3D1X/Shaders/genVertexShaderHeader.bat
blob: 7085775e28e4da48b6c0a8b812a2f6255f18cb78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 vs_4_0 /Fo "%1" %2
bin2header.exe "%1"

echo Generating shader reflection data for %1
ShaderReflector "%1" "%1_refl.h"

del "%1"
endlocal
popd