2020-03-23 17:07:38 +00:00
|
|
|
REM ====================================
|
|
|
|
REM Hybrid Codecs: Full support in v4.0
|
|
|
|
REM ====================================
|
|
|
|
|
|
|
|
REM gets the output dir
|
|
|
|
set BUILD_OUTDIR=%1
|
|
|
|
|
|
|
|
REM get the batch files dir
|
|
|
|
SET mypath=%~dp0
|
|
|
|
echo %mypath:~0,-1%
|
|
|
|
|
|
|
|
IF NOT EXIST "%outpath%"\Plugins mkdir %BUILD_OUTDIR%Plugins
|
|
|
|
IF NOT EXIST "%outpath%"\Plugins\Compute mkdir %BUILD_OUTDIR%Plugins\Compute
|
|
|
|
|
2020-07-06 06:05:07 +00:00
|
|
|
REM ToDo: Build Vulkan based shaders
|
|
|
|
REM "%VULKAN_SDK%"\bin\glslangvalidator -V %mypath:~0,-1%\BC1... -o %BUILD_OUTDIR%\Plugins\Compute\BC1....spv
|
2020-03-23 17:07:38 +00:00
|
|
|
REM IF %ERRORLEVEL% GTR 0 exit 123
|
|
|
|
|
2020-07-06 06:05:07 +00:00
|
|
|
REM Remove any OpenCL compiled Binaries
|
2020-03-23 17:07:38 +00:00
|
|
|
REM
|
2020-07-06 06:05:07 +00:00
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC1_Encode_kernel.cpp.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC1_Encode_kernel.hlsl.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC2_Encode_kernel.cpp.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC2_Encode_kernel.hlsl.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC3_Encode_kernel.cpp.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC3_Encode_kernel.hlsl.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC4_Encode_kernel.cpp.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC4_Encode_kernel.hlsl.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC5_Encode_kernel.cpp.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC5_Encode_kernel.hlsl.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC6_Encode_kernel.cpp.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC6_Encode_kernel.hlsl.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC6_Encode_kernel.hlsl.0.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC6_Encode_kernel.hlsl.1.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC7_Encode_Kernel.cpp.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC7_Encode_Kernel.hlsl.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC7_Encode_Kernel.hlsl.0.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC7_Encode_Kernel.hlsl.1.cmp
|
|
|
|
del %BUILD_OUTDIR%Plugins\Compute\BC7_Encode_Kernel.hlsl.2.cmp
|
|
|
|
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\Common_Def.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BCn_Common_Kernel.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC1_Encode_kernel.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC1_Encode_kernel.hlsl" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC1_Encode_kernel.cpp" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC2_Encode_kernel.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC2_Encode_kernel.hlsl" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC2_Encode_kernel.cpp" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC3_Encode_kernel.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC3_Encode_kernel.hlsl" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC3_Encode_kernel.cpp" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC4_Encode_kernel.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC4_Encode_kernel.hlsl" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC4_Encode_kernel.cpp" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC5_Encode_kernel.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC5_Encode_kernel.hlsl" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC5_Encode_kernel.cpp" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC6_Encode_kernel.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC6_Encode_kernel.hlsl" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC6_Encode_kernel.cpp" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC7_Encode_Kernel.h" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC7_Encode_Kernel.hlsl" %BUILD_OUTDIR%Plugins\Compute\
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC7_Encode_Kernel.cpp" %BUILD_OUTDIR%Plugins\Compute\
|
2020-03-23 17:07:38 +00:00
|
|
|
|
|
|
|
echo "Dependencies copied done"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|