Skip to content

Commit 9bba647

Browse files
committed
[Windows] Enabled D3D12 support.
1 parent ceadb16 commit 9bba647

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

build-windows/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
# Config
66

77
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
8-
export OPTIONS="production=yes angle_libs=/root/angle"
8+
export OPTIONS="production=yes angle_libs=/root/angle mesa_libs=/root/mesa d3d12=yes"
99
export OPTIONS_MONO="module_mono_enabled=yes"
1010
export TERM=xterm
1111

build.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ if [ ! -d "deps/angle" ]; then
148148
popd
149149
fi
150150

151+
if [ ! -d "deps/mesa" ]; then
152+
echo "Missing Mesa/NIR libraries, downloading them."
153+
mkdir -p deps/mesa
154+
pushd deps/mesa
155+
curl -L -o windows.zip https://github.com/godotengine/godot-nir-static/releases/download/23.1.0-devel-mingw/godot-nir-23.1.0-devel-mingw.zip
156+
unzip windows.zip && rm -f windows.zip
157+
popd
158+
fi
159+
151160
# Keystore for Android editor signing
152161
# Optional - the config.sh will be copied but if it's not filled in,
153162
# it will do an unsigned build.
@@ -199,7 +208,7 @@ mkdir -p ${basedir}/mono-glue
199208
${podman_run} -v ${basedir}/build-mono-glue:/root/build localhost/godot-linux:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/mono-glue
200209

201210
mkdir -p ${basedir}/out/windows
202-
${podman_run} -v ${basedir}/build-windows:/root/build -v ${basedir}/out/windows:/root/out -v ${basedir}/deps/angle:/root/angle localhost/godot-windows:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/windows
211+
${podman_run} -v ${basedir}/build-windows:/root/build -v ${basedir}/out/windows:/root/out -v ${basedir}/deps/angle:/root/angle -v ${basedir}/deps/mesa:/root/mesa localhost/godot-windows:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/windows
203212

204213
mkdir -p ${basedir}/out/linux
205214
${podman_run} -v ${basedir}/build-linux:/root/build -v ${basedir}/out/linux:/root/out localhost/godot-linux:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/linux

0 commit comments

Comments
 (0)