Change &mut wgpu::Device to &wgpu::Device (#299)

* Change `&mut wgpu::Device` to `&wgpu::Device`

* Fix for rustfmt
This commit is contained in:
Lain-dono 2020-04-16 09:06:05 +03:00 committed by GitHub
parent 99e020c7b5
commit b23945c78a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 13 deletions

View file

@ -63,7 +63,7 @@ impl<T> Buffer<T> {
impl Pipeline {
pub fn new(
device: &mut wgpu::Device,
device: &wgpu::Device,
format: wgpu::TextureFormat,
antialiasing: Option<settings::Antialiasing>,
) -> Pipeline {
@ -195,7 +195,7 @@ impl Pipeline {
pub fn draw(
&mut self,
device: &mut wgpu::Device,
device: &wgpu::Device,
encoder: &mut wgpu::CommandEncoder,
target: &wgpu::TextureView,
target_width: u32,