Skip to content

Commit 4ce9da9

Browse files
authored
Fix name inconsistency for subgroups feature (#756)
1 parent 830daa7 commit 4ce9da9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wgpu/backends/wgpu_native/_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,8 @@ def _request_device(
11311131
i = enummap.get(f"FeatureName.{f}", None)
11321132
if i is None:
11331133
i = enum_str2int["NativeFeature"].get(f, None)
1134+
if i is None and f == "subgroups": # Temporary fix, see #721
1135+
i = enum_str2int["NativeFeature"].get("subgroup", None)
11341136
if i is None:
11351137
raise KeyError(f"Unknown feature: '{f}'")
11361138
c_features.add(i)

0 commit comments

Comments
 (0)