Use default() when making wgpu::RenderPipelineDescriptor (#152)
This commit is contained in:
parent
8071f34a1f
commit
11c5961e4c
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue