Ci.
This commit is contained in:
parent
87b00aa74e
commit
08ce3a524d
@ -3,11 +3,11 @@ use crate::renderer::{
|
|||||||
};
|
};
|
||||||
use alloc::borrow::Cow;
|
use alloc::borrow::Cow;
|
||||||
|
|
||||||
use wgpu::{DxcShaderModel, MemoryBudgetThresholds};
|
|
||||||
pub use wgpu::{
|
pub use wgpu::{
|
||||||
Backends, Dx12Compiler, Features as WgpuFeatures, Gles3MinorVersion, InstanceFlags,
|
Backends, Dx12Compiler, Features as WgpuFeatures, Gles3MinorVersion, InstanceFlags,
|
||||||
Limits as WgpuLimits, MemoryHints, PowerPreference,
|
Limits as WgpuLimits, MemoryHints, PowerPreference,
|
||||||
};
|
};
|
||||||
|
use wgpu::{DxcShaderModel, MemoryBudgetThresholds};
|
||||||
|
|
||||||
/// Configures the priority used when automatically configuring the features/limits of `wgpu`.
|
/// Configures the priority used when automatically configuring the features/limits of `wgpu`.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
@ -110,9 +110,7 @@ impl Default for WgpuSettings {
|
|||||||
} else {
|
} else {
|
||||||
let dxc = "dxcompiler.dll";
|
let dxc = "dxcompiler.dll";
|
||||||
|
|
||||||
if cfg!(target_os = "windows")
|
if cfg!(target_os = "windows") && std::fs::metadata(dxc).is_ok() {
|
||||||
&& std::fs::metadata(dxc).is_ok()
|
|
||||||
{
|
|
||||||
Dx12Compiler::DynamicDxc {
|
Dx12Compiler::DynamicDxc {
|
||||||
dxc_path: String::from(dxc),
|
dxc_path: String::from(dxc),
|
||||||
max_shader_model: DxcShaderModel::V6_7,
|
max_shader_model: DxcShaderModel::V6_7,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user