mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-25 10:11:10 +01:00
19 lines
1014 B
Batchfile
19 lines
1014 B
Batchfile
rem This script runs for the Windows build, but also via the _xbox variant with these vars set.
|
|
rem Make sure to default to building for Windows if they're not set.
|
|
if %DXC%.==. set DXC=dxc
|
|
if %SUFFIX%.==. set SUFFIX=.h
|
|
|
|
echo Building with %DXC%
|
|
echo Suffix %SUFFIX%
|
|
|
|
cd "%~dp0"
|
|
|
|
%DXC% -E FullscreenVert -T vs_6_0 -Fh D3D12_FullscreenVert.h D3D_Blit.hlsl
|
|
%DXC% -E BlitFrom2D -T ps_6_0 -Fh D3D12_BlitFrom2D.h D3D_Blit.hlsl
|
|
%DXC% -E BlitFrom2DArray -T ps_6_0 -Fh D3D12_BlitFrom2DArray.h D3D_Blit.hlsl
|
|
%DXC% -E BlitFrom3D -T ps_6_0 -Fh D3D12_BlitFrom3D.h D3D_Blit.hlsl
|
|
%DXC% -E BlitFromCube -T ps_6_0 -Fh D3D12_BlitFromCube.h D3D_Blit.hlsl
|
|
%DXC% -E BlitFromCubeArray -T ps_6_0 -Fh D3D12_BlitFromCubeArray.h D3D_Blit.hlsl
|
|
copy /b D3D12_FullscreenVert.h+D3D12_BlitFrom2D.h+D3D12_BlitFrom2DArray.h+D3D12_BlitFrom3D.h+D3D12_BlitFromCube.h+D3D12_BlitFromCubeArray.h D3D12_Blit%SUFFIX%
|
|
del D3D12_FullscreenVert.h D3D12_BlitFrom2D.h D3D12_BlitFrom2DArray.h D3D12_BlitFrom3D.h D3D12_BlitFromCube.h D3D12_BlitFromCubeArray.h
|