upgrade wgpu
This commit is contained in:
parent
1426208e2f
commit
3ccaebf9a5
@ -19,7 +19,7 @@ bevy_winit = { path = "../bevy_winit", optional = true }
|
|||||||
legion = { path = "../bevy_legion" }
|
legion = { path = "../bevy_legion" }
|
||||||
|
|
||||||
# render
|
# render
|
||||||
wgpu = { git = "https://github.com/gfx-rs/wgpu-rs.git", rev = "ff41d31200a5c5f0d7ddcd9a87b370c566936257" }
|
wgpu = { git = "https://github.com/gfx-rs/wgpu-rs.git", rev = "7b866b1a1b72d4ecb7a63e11fbc8f521fe9eb363" }
|
||||||
# wgpu = { version = "0.5.0" }
|
# wgpu = { version = "0.5.0" }
|
||||||
|
|
||||||
pollster = "0.2.0"
|
pollster = "0.2.0"
|
||||||
|
|||||||
@ -31,6 +31,7 @@ impl WgpuRenderer {
|
|||||||
power_preference: wgpu::PowerPreference::Default,
|
power_preference: wgpu::PowerPreference::Default,
|
||||||
compatible_surface: None,
|
compatible_surface: None,
|
||||||
},
|
},
|
||||||
|
wgpu::UnsafeExtensions::disallow(),
|
||||||
wgpu::BackendBit::PRIMARY,
|
wgpu::BackendBit::PRIMARY,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
@ -41,6 +42,7 @@ impl WgpuRenderer {
|
|||||||
&wgpu::DeviceDescriptor {
|
&wgpu::DeviceDescriptor {
|
||||||
extensions: wgpu::Extensions::empty(),
|
extensions: wgpu::Extensions::empty(),
|
||||||
limits: wgpu::Limits::default(),
|
limits: wgpu::Limits::default(),
|
||||||
|
shader_validation: true,
|
||||||
},
|
},
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -508,6 +508,7 @@ impl WgpuFrom<SamplerDescriptor> for wgpu::SamplerDescriptor<'_> {
|
|||||||
lod_max_clamp: sampler_descriptor.lod_max_clamp,
|
lod_max_clamp: sampler_descriptor.lod_max_clamp,
|
||||||
compare: sampler_descriptor.compare_function.map(|c| c.wgpu_into()),
|
compare: sampler_descriptor.compare_function.map(|c| c.wgpu_into()),
|
||||||
anisotropy_clamp: sampler_descriptor.anisotropy_clamp.clone(),
|
anisotropy_clamp: sampler_descriptor.anisotropy_clamp.clone(),
|
||||||
|
..Default::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user