Use default() when making wgpu::RenderPipelineDescriptor (#152)

This commit is contained in:
JMS55 2021-03-11 21:14:34 -05:00 committed by GitHub
parent 8071f34a1f
commit 11c5961e4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 24 deletions

View file

@ -106,19 +106,9 @@ impl NoiseRenderer {
entry_point: "main", entry_point: "main",
buffers: &[], buffers: &[],
}, },
primitive: wgpu::PrimitiveState { primitive: wgpu::PrimitiveState::default(),
topology: wgpu::PrimitiveTopology::TriangleList,
strip_index_format: None,
front_face: wgpu::FrontFace::Ccw,
cull_mode: wgpu::CullMode::None,
polygon_mode: wgpu::PolygonMode::Fill,
},
depth_stencil: None, depth_stencil: None,
multisample: wgpu::MultisampleState { multisample: wgpu::MultisampleState::default(),
count: 1,
mask: !0,
alpha_to_coverage_enabled: false,
},
fragment: Some(wgpu::FragmentState { fragment: Some(wgpu::FragmentState {
module: &fs_module, module: &fs_module,
entry_point: "main", entry_point: "main",

View file

@ -124,19 +124,9 @@ impl ScalingRenderer {
entry_point: "main", entry_point: "main",
buffers: &[], buffers: &[],
}, },
primitive: wgpu::PrimitiveState { primitive: wgpu::PrimitiveState::default(),
topology: wgpu::PrimitiveTopology::TriangleList,
strip_index_format: None,
front_face: wgpu::FrontFace::Ccw,
cull_mode: wgpu::CullMode::None,
polygon_mode: wgpu::PolygonMode::Fill,
},
depth_stencil: None, depth_stencil: None,
multisample: wgpu::MultisampleState { multisample: wgpu::MultisampleState::default(),
count: 1,
mask: !0,
alpha_to_coverage_enabled: false,
},
fragment: Some(wgpu::FragmentState { fragment: Some(wgpu::FragmentState {
module: &fs_module, module: &fs_module,
entry_point: "main", entry_point: "main",