Skip to content

Commit

Permalink
Removed a couple of more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fyellin committed Sep 10, 2024
1 parent 06adb79 commit 330a6a9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions wgpu/backends/wgpu_native/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,10 @@ def _get_features(id: int, device: bool = False, adapter: bool = False):
"""Gets the features for a device or an adapter"""
assert device + adapter == 1 # exactly one of them is set

# Note, these lambdas should be "def"s, but there seems to be a bug in codegen that
# generates bad code in that case We use lambdas, and tell flake8 not to complain.
if adapter:
# H: WGPUBool f(WGPUAdapter adapter, WGPUFeatureName feature)
has_feature = lambda i: libf.wgpuAdapterHasFeature(id, i) # noqa
else:
# flake8 noqa
# H: WGPUBool f(WGPUDevice device, WGPUFeatureName feature)
has_feature = lambda i: libf.wgpuDeviceHasFeature(id, i) # noqa

Expand Down

0 comments on commit 330a6a9

Please sign in to comment.