170170
171171To compile Godot with Direct3D 12 support you need at least the following:
172172
173- - Visual Studio (follow the instructions above to install). Currently, we don't
174- support building with Direct3D 12 enabled when using MinGW. Support will be
175- added in the future if possible.
176173- `The DirectX Shader Compiler <https://github.com/Microsoft/DirectXShaderCompiler/releases >`_.
177174 The zip folder will be named "dxc\_ " followed by the date of release. Download
178175 it anywhere, unzip it and remember the path to the unzipped folder, you will
@@ -195,6 +192,12 @@ To compile Godot with Direct3D 12 support you need at least the following:
195192 ./update_mesa.sh
196193 scons
197194
195+ If you are buildng with MinGW, add ``use_mingw=yes`` to the ``scons``
196+ command, you can also specify build architecture using ``arch={architecture}``.
197+
198+ Mesa static library should be built using the same compiler you are
199+ using for building Godot.
200+
198201Optionally, you can compile with the following for additional features:
199202
200203- `PIX <https://devblogs.microsoft.com/pix/download >`_ is a performance tuning
@@ -214,6 +217,17 @@ Optionally, you can compile with the following for additional features:
214217.. note :: If you use a preview version of the Agility SDK, remember to enable
215218 developer mode in Windows; otherwise it won't be used.
216219
220+ .. note :: If you want to use a PIX with MinGW build, navigate to PIX runtime
221+ directory and use the following commands to generate import library::
222+
223+ # For x86-64:
224+ gendef ./bin/x64/WinPixEventRuntime.dll
225+ dlltool --machine i386:x86-64 --no-leading-underscore -d WinPixEventRuntime.def -D WinPixEventRuntime.dll -l ./bin/x64/libWinPixEventRuntime.a
226+
227+ # For ARM64:
228+ gendef ./bin/ARM64/WinPixEventRuntime.dll
229+ dlltool --machine arm64 --no-leading-underscore -d WinPixEventRuntime.def -D WinPixEventRuntime.dll -l ./bin/ARM64/libWinPixEventRuntime.a
230+
217231When building Godot, you will need to tell SCons to use Direct3D 12 and where to
218232look for the additional libraries::
219233
0 commit comments