summaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/CAPI/D3D1X/Shaders/genPixelShaderHeader.bat
blob: 5b108dc82c1864faf7965993ea0f6b006d80e28b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo off
pushd %~dp0
echo Compiling shader and packing into header: %~2
setlocal

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