diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
| commit | 5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch) | |
| tree | 8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/src/gpu/d3d12/compile_shaders.bat | |
Initial commit
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.bat | 18 |
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 @@ | |||
| 1 | rem This script runs for the Windows build, but also via the _xbox variant with these vars set. | ||
| 2 | rem Make sure to default to building for Windows if they're not set. | ||
| 3 | if %DXC%.==. set DXC=dxc | ||
| 4 | if %SUFFIX%.==. set SUFFIX=.h | ||
| 5 | |||
| 6 | echo Building with %DXC% | ||
| 7 | echo Suffix %SUFFIX% | ||
| 8 | |||
| 9 | cd "%~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 | ||
| 17 | copy /b D3D12_FullscreenVert.h+D3D12_BlitFrom2D.h+D3D12_BlitFrom2DArray.h+D3D12_BlitFrom3D.h+D3D12_BlitFromCube.h+D3D12_BlitFromCubeArray.h D3D12_Blit%SUFFIX% | ||
| 18 | del D3D12_FullscreenVert.h D3D12_BlitFrom2D.h D3D12_BlitFrom2DArray.h D3D12_BlitFrom3D.h D3D12_BlitFromCube.h D3D12_BlitFromCubeArray.h | ||
