Skip to content

Commit

Permalink
A few quick typos, while I'm at it.
Browse files Browse the repository at this point in the history
  • Loading branch information
fyellin committed Oct 10, 2024
1 parent 766b766 commit a022ad1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wgpu/backends/wgpu_native/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class GPU(classes.GPU):
def request_adapter_sync(
self,
*,
power_preference: enums.GPUPowerPreference = None,
power_preference: enums.PowerPreference = None,
force_fallback_adapter: bool = False,
canvas=None,
):
Expand All @@ -336,7 +336,7 @@ def request_adapter_sync(
async def request_adapter_async(
self,
*,
power_preference: enums.GPUPowerPreference = None,
power_preference: enums.PowerPreference = None,
force_fallback_adapter: bool = False,
canvas=None,
):
Expand Down Expand Up @@ -1470,7 +1470,7 @@ def create_shader_module(
compilation_hints: List[structs.ShaderModuleCompilationHint] = [],
):
if compilation_hints:
for hint in compilation_hints.values():
for hint in compilation_hints:
check_struct("ShaderModuleCompilationHint", hint)
if isinstance(code, str):
looks_like_wgsl = any(
Expand Down

0 comments on commit a022ad1

Please sign in to comment.