Clippy fixes
This commit is contained in:
parent
17fd7a5ec4
commit
fed16287c5
2 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ impl RenderPass {
|
||||||
topology: wgpu::PrimitiveTopology::TriangleList,
|
topology: wgpu::PrimitiveTopology::TriangleList,
|
||||||
strip_index_format: None,
|
strip_index_format: None,
|
||||||
front_face: wgpu::FrontFace::Ccw,
|
front_face: wgpu::FrontFace::Ccw,
|
||||||
cull_mode: cull_mode,
|
cull_mode,
|
||||||
// Setting this to anything other than Fill requires Features::NON_FILL_POLYGON_MODE
|
// Setting this to anything other than Fill requires Features::NON_FILL_POLYGON_MODE
|
||||||
polygon_mode: wgpu::PolygonMode::Fill,
|
polygon_mode: wgpu::PolygonMode::Fill,
|
||||||
// Requires Features::DEPTH_CLIP_CONTROL
|
// Requires Features::DEPTH_CLIP_CONTROL
|
||||||
|
|
|
@ -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 {
|
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 {
|
device.create_bind_group(&wgpu::BindGroupDescriptor {
|
||||||
layout: layout,
|
layout,
|
||||||
entries: &[
|
entries: &[
|
||||||
// geometry depth
|
// geometry depth
|
||||||
wgpu::BindGroupEntry {
|
wgpu::BindGroupEntry {
|
||||||
|
@ -535,7 +535,7 @@ impl State {
|
||||||
|
|
||||||
fn create_geometry_depth_texture(device: &wgpu::Device, config: &wgpu::SurfaceConfiguration) -> Texture {
|
fn create_geometry_depth_texture(device: &wgpu::Device, config: &wgpu::SurfaceConfiguration) -> Texture {
|
||||||
Texture::create_depth_texture(
|
Texture::create_depth_texture(
|
||||||
&device,
|
device,
|
||||||
"geometry_depth_texture",
|
"geometry_depth_texture",
|
||||||
None,
|
None,
|
||||||
config.width,
|
config.width,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue