Pass DEPTH_CLAMPING feature request to gfx-hal

This commit is contained in:
Imbris
2020-12-19 16:14:51 -05:00
parent 4ebe1f50b0
commit e775987233

View File

@@ -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