From e72bf3e10c34d3eb25b348abb827738f0a02c136 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Sun, 20 Jun 2021 01:24:44 -0400 Subject: [PATCH] Fix wgpu downlevel check --- wgpu-types/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index e82546a695..2c47e851c2 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -720,7 +720,7 @@ impl DownlevelCapabilities { /// If this returns false, some parts of the API will result in validation errors where they would not normally. /// These parts can be determined by the values in this structure. pub fn is_webgpu_compliant(self) -> bool { - self == Self::default() + self.flags.contains(DownlevelFlags::COMPLIANT) && self.shader_model >= ShaderModel::Sm5 } }