Skip to content

Commit

Permalink
lint: deno_webgpu & wgpu-core (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronO authored and kvark committed Jan 21, 2022
1 parent f791eda commit 06a4bce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deno_webgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub async fn op_webgpu_request_adapter(

let descriptor = wgpu_core::instance::RequestAdapterOptions {
power_preference: match args.power_preference {
Some(power_preference) => power_preference.into(),
Some(power_preference) => power_preference,
None => PowerPreference::default(),
},
force_fallback_adapter: args.force_fallback_adapter,
Expand Down
10 changes: 5 additions & 5 deletions deno_webgpu/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ impl TryFrom<GpuDepthStencilState> for wgpu_types::DepthStencilState {
Ok(wgpu_types::DepthStencilState {
format: state.format,
depth_write_enabled: state.depth_write_enabled,
depth_compare: state.depth_compare.into(),
depth_compare: state.depth_compare,
stencil: wgpu_types::StencilState {
front: state.stencil_front.into(),
back: state.stencil_back.into(),
front: state.stencil_front,
back: state.stencil_back,
read_mask: state.stencil_read_mask,
write_mask: state.stencil_write_mask,
},
Expand Down Expand Up @@ -322,7 +322,7 @@ pub fn op_webgpu_create_render_pipeline(
let mut targets = Vec::with_capacity(fragment.targets.len());

for target in fragment.targets {
targets.push(target.try_into()?);
targets.push(target);
}

Some(wgpu_core::pipeline::FragmentState {
Expand Down Expand Up @@ -356,7 +356,7 @@ pub fn op_webgpu_create_render_pipeline(
},
primitive: args.primitive.into(),
depth_stencil: args.depth_stencil.map(TryInto::try_into).transpose()?,
multisample: args.multisample.into(),
multisample: args.multisample,
fragment,
multiview: None,
};
Expand Down

0 comments on commit 06a4bce

Please sign in to comment.