How to reproduce:
1. Open the attached “IN-137670” project
2. Confirm that D3D12 is absent in “Edit → Project Settings -> Other Settings -> Graphics API for Windows”
3. Navigate to “File → Build profiles" and build for Windows
4. Run the .exe of the built project
5. Navigate to “%USERPROFILE%\AppData\LocalLow\CompanyName\ProductName\”
6. Open Player.log
7. Observe the lines referring to D3D12, for example:
[D3D12 Device Filter] Vendor Name: NVIDIA
[D3D12 Device Filter] Device Name: NVIDIA GeForce RTX 3050 Ti Laptop GPU
[D3D12 Device Filter] Driver Version: 32.0.15.7357
Actual result: Unity loads D3D12 DLLs despite D3D12 being removed from the build
Expected result: Unity does not load D3D12 DLLs when D3D12 is removed from the build
Reproducible with: 6000.2.7f1, 6000.3.12f1, 6000.4.1f1, 6000.5.0b1, 6000.6.0a1
Not reproducible with: 6000.0.71f1, 6000.2.6f2
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note:
-This bug will result in a crash on specific hardware