upgrade wgpu

This commit is contained in:
Carter Anderson 2020-06-09 10:57:18 -07:00
parent 1426208e2f
commit 3ccaebf9a5
3 changed files with 4 additions and 1 deletions

View file

@ -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"

View file

@ -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,
)

View file

@ -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()
}
}
}