diff --git a/src/core/pass.rs b/src/core/pass.rs index 4ad60e0..41e5cac 100644 --- a/src/core/pass.rs +++ b/src/core/pass.rs @@ -104,7 +104,7 @@ impl RenderPass { topology: wgpu::PrimitiveTopology::TriangleList, strip_index_format: None, front_face: wgpu::FrontFace::Ccw, - cull_mode: cull_mode, + cull_mode, // Setting this to anything other than Fill requires Features::NON_FILL_POLYGON_MODE polygon_mode: wgpu::PolygonMode::Fill, // Requires Features::DEPTH_CLIP_CONTROL diff --git a/src/core/state.rs b/src/core/state.rs index 0c4611b..bf46d95 100644 --- a/src/core/state.rs +++ b/src/core/state.rs @@ -517,7 +517,7 @@ impl State { pub fn create_geometry_depth_bind_group(device: &wgpu::Device, layout: &wgpu::BindGroupLayout, geometry_depth_texture: &Texture) -> wgpu::BindGroup { device.create_bind_group(&wgpu::BindGroupDescriptor { - layout: layout, + layout, entries: &[ // geometry depth wgpu::BindGroupEntry { @@ -535,7 +535,7 @@ impl State { fn create_geometry_depth_texture(device: &wgpu::Device, config: &wgpu::SurfaceConfiguration) -> Texture { Texture::create_depth_texture( - &device, + device, "geometry_depth_texture", None, config.width,