summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat')
-rw-r--r--contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat18
1 files changed, 18 insertions, 0 deletions
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 @@
1rem This script runs for the Windows build, but also via the _xbox variant with these vars set.
2rem Make sure to default to building for Windows if they're not set.
3if %DXC%.==. set DXC=dxc
4if %SUFFIX%.==. set SUFFIX=.h
5
6echo Building with %DXC%
7echo Suffix %SUFFIX%
8
9cd "%~dp0"
10
11%DXC% -E FullscreenVert -T vs_6_0 -Fh D3D12_FullscreenVert.h D3D_Blit.hlsl
12%DXC% -E BlitFrom2D -T ps_6_0 -Fh D3D12_BlitFrom2D.h D3D_Blit.hlsl
13%DXC% -E BlitFrom2DArray -T ps_6_0 -Fh D3D12_BlitFrom2DArray.h D3D_Blit.hlsl
14%DXC% -E BlitFrom3D -T ps_6_0 -Fh D3D12_BlitFrom3D.h D3D_Blit.hlsl
15%DXC% -E BlitFromCube -T ps_6_0 -Fh D3D12_BlitFromCube.h D3D_Blit.hlsl
16%DXC% -E BlitFromCubeArray -T ps_6_0 -Fh D3D12_BlitFromCubeArray.h D3D_Blit.hlsl
17copy /b D3D12_FullscreenVert.h+D3D12_BlitFrom2D.h+D3D12_BlitFrom2DArray.h+D3D12_BlitFrom3D.h+D3D12_BlitFromCube.h+D3D12_BlitFromCubeArray.h D3D12_Blit%SUFFIX%
18del D3D12_FullscreenVert.h D3D12_BlitFrom2D.h D3D12_BlitFrom2DArray.h D3D12_BlitFrom3D.h D3D12_BlitFromCube.h D3D12_BlitFromCubeArray.h