misc
This commit is contained in:
parent
eb3bb95c91
commit
e370c3d601
2 changed files with 4 additions and 4 deletions
|
@ -322,7 +322,7 @@ mod windows {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to find in PATH
|
// Try to find in PATH
|
||||||
// NOTE: This has to be `where.exe` on Windows, not `which`
|
// NOTE: This has to be `where.exe` on Windows, not `where`, it must be ended with `.exe`
|
||||||
if let Ok(output) = std::process::Command::new("where.exe")
|
if let Ok(output) = std::process::Command::new("where.exe")
|
||||||
.arg("fxc.exe")
|
.arg("fxc.exe")
|
||||||
.output()
|
.output()
|
||||||
|
|
|
@ -564,8 +564,8 @@ impl DirectXRenderer {
|
||||||
let driver_version = match desc.VendorId {
|
let driver_version = match desc.VendorId {
|
||||||
0x10DE => nvidia::get_driver_version(),
|
0x10DE => nvidia::get_driver_version(),
|
||||||
0x1002 => amd::get_driver_version(),
|
0x1002 => amd::get_driver_version(),
|
||||||
0x8086 => intel::get_driver_version(&self.devices.adapter),
|
// For Intel and other vendors, we use the DXGI API to get the driver version.
|
||||||
id => Err(anyhow::anyhow!("Unknown vendor detected (ID: {:#X}).", id)),
|
_ => dxgi::get_driver_version(&self.devices.adapter),
|
||||||
}
|
}
|
||||||
.context("Failed to get gpu driver info")
|
.context("Failed to get gpu driver info")
|
||||||
.log_err()
|
.log_err()
|
||||||
|
@ -1710,7 +1710,7 @@ mod amd {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mod intel {
|
mod dxgi {
|
||||||
use windows::{
|
use windows::{
|
||||||
Win32::Graphics::Dxgi::{IDXGIAdapter1, IDXGIDevice},
|
Win32::Graphics::Dxgi::{IDXGIAdapter1, IDXGIDevice},
|
||||||
core::Interface,
|
core::Interface,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue