mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
upgrade wgpu
This commit is contained in:
parent
1426208e2f
commit
3ccaebf9a5
3 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,7 @@ bevy_winit = { path = "../bevy_winit", optional = true }
|
|||
legion = { path = "../bevy_legion" }
|
||||
|
||||
# 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" }
|
||||
|
||||
pollster = "0.2.0"
|
||||
|
|
|
@ -31,6 +31,7 @@ impl WgpuRenderer {
|
|||
power_preference: wgpu::PowerPreference::Default,
|
||||
compatible_surface: None,
|
||||
},
|
||||
wgpu::UnsafeExtensions::disallow(),
|
||||
wgpu::BackendBit::PRIMARY,
|
||||
)
|
||||
.await
|
||||
|
@ -41,6 +42,7 @@ impl WgpuRenderer {
|
|||
&wgpu::DeviceDescriptor {
|
||||
extensions: wgpu::Extensions::empty(),
|
||||
limits: wgpu::Limits::default(),
|
||||
shader_validation: true,
|
||||
},
|
||||
None,
|
||||
)
|
||||
|
|
|
@ -508,6 +508,7 @@ impl WgpuFrom<SamplerDescriptor> for wgpu::SamplerDescriptor<'_> {
|
|||
lod_max_clamp: sampler_descriptor.lod_max_clamp,
|
||||
compare: sampler_descriptor.compare_function.map(|c| c.wgpu_into()),
|
||||
anisotropy_clamp: sampler_descriptor.anisotropy_clamp.clone(),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue