Skip to content

Commit

Permalink
fixup! refactor: resolve clippy::bool_to_int_with_if
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Nov 7, 2022
1 parent 7a6144f commit d210a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-hal/src/dx12/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ impl crate::Device<super::Api> for super::Device {
DepthBias: bias.constant,
DepthBiasClamp: bias.clamp,
SlopeScaledDepthBias: bias.slope_scale,
DepthClipEnable: desc.primitive.unclipped_depth.into(),
DepthClipEnable: (!desc.primitive.unclipped_depth).into(),
MultisampleEnable: (desc.multisample.count > 1).into(),
ForcedSampleCount: 0,
AntialiasedLineEnable: 0,
Expand Down

0 comments on commit d210a2b

Please sign in to comment.