From a5a44f670d91892b351e735218b7003433c9e6da Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 14 Nov 2023 13:43:43 +0100 Subject: [PATCH 1/2] use default device --- wgpu/utils/shadertoy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/utils/shadertoy.py b/wgpu/utils/shadertoy.py index 3ab36fd9..7a4fb52e 100644 --- a/wgpu/utils/shadertoy.py +++ b/wgpu/utils/shadertoy.py @@ -303,7 +303,7 @@ def _prepare_render(self): adapter = wgpu.request_adapter( canvas=self._canvas, power_preference="high-performance" ) - self._device = adapter.request_device() + self._device = wgpu.utils.device.get_default_device() self._present_context = self._canvas.get_context() From bcb8c6a7d660e9c679ca1655deed70445f575e4e Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 14 Nov 2023 14:55:04 +0100 Subject: [PATCH 2/2] Remove adapter --- wgpu/utils/shadertoy.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/wgpu/utils/shadertoy.py b/wgpu/utils/shadertoy.py index 7a4fb52e..7d3a61ac 100644 --- a/wgpu/utils/shadertoy.py +++ b/wgpu/utils/shadertoy.py @@ -300,9 +300,6 @@ def _prepare_render(self): title="Shadertoy", size=self.resolution, max_fps=60 ) - adapter = wgpu.request_adapter( - canvas=self._canvas, power_preference="high-performance" - ) self._device = wgpu.utils.device.get_default_device() self._present_context = self._canvas.get_context()