From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat (limited to 'contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat') diff --git a/contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat b/contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat new file mode 100644 index 0000000..7aa78ef --- /dev/null +++ b/contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat @@ -0,0 +1,18 @@ +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 -- cgit v1.2.3