From d231cb8a680b8815724be5eaed6ffe81516b9bcc Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sun, 21 Jul 2024 17:33:13 -0400 Subject: [PATCH] Update wgpu dependency to match pygfx (#32) * update wgpu dependency * Fixup patch for wgpu 0.16.0 compatibility --------- Co-authored-by: Jan --- pyproject.toml | 2 +- tests/testutils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 210767f..ae39b94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta" name = "wgpu-shadertoy" dynamic = ["version", "readme"] dependencies = [ - "wgpu>=0.14.1,<0.15.0", + "wgpu>=0.16.0,<0.17.0", "requests", "numpy", "Pillow", diff --git a/tests/testutils.py b/tests/testutils.py index 610d569..e47f218 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -96,7 +96,7 @@ def get_wgpu_backend(): """ Query the configured wgpu backend driver. """ - code = "import wgpu.utils; info = wgpu.utils.get_default_device().adapter.request_adapter_info(); print(info['adapter_type'], info['backend_type'])" + code = "import wgpu.utils; info = wgpu.utils.get_default_device().adapter.info; print(info['adapter_type'], info['backend_type'])" result = subprocess.run( [ sys.executable,