Change &mut wgpu::Device to &wgpu::Device (#299)
* Change `&mut wgpu::Device` to `&wgpu::Device` * Fix for rustfmt
This commit is contained in:
parent
99e020c7b5
commit
b23945c78a
5 changed files with 10 additions and 13 deletions
|
|
@ -15,10 +15,7 @@ pub struct Pipeline {
|
|||
}
|
||||
|
||||
impl Pipeline {
|
||||
pub fn new(
|
||||
device: &mut wgpu::Device,
|
||||
format: wgpu::TextureFormat,
|
||||
) -> Pipeline {
|
||||
pub fn new(device: &wgpu::Device, format: wgpu::TextureFormat) -> Pipeline {
|
||||
let constant_layout =
|
||||
device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
|
||||
label: None,
|
||||
|
|
@ -180,7 +177,7 @@ impl Pipeline {
|
|||
|
||||
pub fn draw(
|
||||
&mut self,
|
||||
device: &mut wgpu::Device,
|
||||
device: &wgpu::Device,
|
||||
encoder: &mut wgpu::CommandEncoder,
|
||||
instances: &[Quad],
|
||||
transformation: Transformation,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue