From e775987233020faacb3fd717457df92304013dd7 Mon Sep 17 00:00:00 2001 From: Imbris Date: Sat, 19 Dec 2020 16:14:51 -0500 Subject: [PATCH] Pass DEPTH_CLAMPING feature request to gfx-hal --- wgpu-core/src/instance.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index bc50956d83..b57c1f0716 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -275,6 +275,10 @@ impl Adapter { } // Features + enabled_features.set( + hal::Features::DEPTH_CLAMP, + desc.features.contains(wgt::Features::DEPTH_CLAMPING), + ); enabled_features.set( hal::Features::FORMAT_BC, desc.features