mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
print source in log
This commit is contained in:
parent
fe8a9b2f95
commit
daaf7da09a
@ -1,6 +1,6 @@
|
|||||||
use crate::auxil::dxgi::result::HResult;
|
use crate::auxil::dxgi::result::HResult;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
use std::{error::Error, ffi::CStr};
|
||||||
use windows::{
|
use windows::{
|
||||||
core::{Interface, PCSTR, PCWSTR},
|
core::{Interface, PCSTR, PCWSTR},
|
||||||
Win32::Graphics::Direct3D::{Dxc, Fxc},
|
Win32::Graphics::Direct3D::{Dxc, Fxc},
|
||||||
@ -145,8 +145,9 @@ pub(super) fn get_dxc_container(
|
|||||||
Ok(dxc) => dxc,
|
Ok(dxc) => dxc,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::warn!(
|
log::warn!(
|
||||||
"Failed to load dxcompiler.dll. Defaulting to FXC instead: {}",
|
"Failed to load dxcompiler.dll. Defaulting to FXC instead: {}: {:?}",
|
||||||
e
|
e,
|
||||||
|
e.source()
|
||||||
);
|
);
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
@ -155,7 +156,11 @@ pub(super) fn get_dxc_container(
|
|||||||
let dxil = match DxcLib::new(dxil_path, "dxil.dll") {
|
let dxil = match DxcLib::new(dxil_path, "dxil.dll") {
|
||||||
Ok(dxil) => dxil,
|
Ok(dxil) => dxil,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::warn!("Failed to load dxil.dll. Defaulting to FXC instead: {}", e);
|
log::warn!(
|
||||||
|
"Failed to load dxil.dll. Defaulting to FXC instead: {}: {:?}",
|
||||||
|
e,
|
||||||
|
e.source()
|
||||||
|
);
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user