[D3D12] Add support for building with pre-11.0.0 MinGW versions, make PIX runtime opt-in.

This commit is contained in:
bruvzg 2024-01-26 19:02:06 +02:00
parent 17e7f85c06
commit dfa303f7c4
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
4 changed files with 25 additions and 16 deletions

View file

@ -97,7 +97,7 @@ if env["d3d12"]:
arch_bin_dir = "#bin/" + env["arch"]
# DXC
if env["dxc_path"] != "":
if env["dxc_path"] != "" and os.path.exists(env["dxc_path"]):
dxc_dll = "dxil.dll"
# Whether this one is loaded from arch-specific directory or not can be determined at runtime.
# Let's copy to both and let the user decide the distribution model.
@ -121,7 +121,7 @@ if env["d3d12"]:
)
# PIX
if env["pix_path"] != "" and os.path.exists(env["pix_path"]):
if env["use_pix"]:
pix_dll = "WinPixEventRuntime.dll"
env.Command(
"#bin/" + pix_dll,