mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
Fix wgpu downlevel check
This commit is contained in:
1 parent
6cacfca10b
commit
e72bf3e10c
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user