Skip to content

Commit

Permalink
Pass DEPTH_CLAMPING feature request to gfx-hal
Browse files Browse the repository at this point in the history
  • Loading branch information
Imberflur committed Dec 19, 2020
1 parent 4ebe1f5 commit e775987
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wgpu-core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ impl<B: GfxBackend> Adapter<B> {
}

// Features
enabled_features.set(
hal::Features::DEPTH_CLAMP,
desc.features.contains(wgt::Features::DEPTH_CLAMPING),
);
enabled_features.set(
hal::Features::FORMAT_BC,
desc.features
Expand Down

0 comments on commit e775987

Please sign in to comment.