aboutsummaryrefslogtreecommitdiff
path: root/src/shaders/helper_hlsl_cc.bat
blob: 1f27379e6b2c41abae14ece01bcba5a4be81ad43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@SET "HLSL_CC=%~dp0\HLSLcc.exe"
@SET "STRINGIFY=%~dp0\Stringify.exe"
@SET "HELPER_FXC=%~dp0\helper_fxc"

@CALL %HELPER_FXC%
@IF ERRORLEVEL 1 GOTO error

:: static const unsigned int HLSLCC_FLAG_UNIFORM_BUFFER_OBJECT = 0x1;
@%HLSL_CC% %HLSL_CC_CMD_LINE%
@IF ERRORLEVEL 1 GOTO error

@%STRINGIFY% %STRINGIFY_CMD_LINE%
@IF ERRORLEVEL 1 GOTO error

:done
@EXIT /B 0

:error
@echo %0: ERROR
@EXIT /B 1