Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/user_guide/gpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ You can get more detailed info on each adapter like this::

import pprint
for a in fpl.enumerate_adapters():
pprint.pprint(a.info)
pprint.pprint(a.request_adapter_info())

General description of the fields:
* vendor: GPU manufacturer
Expand Down Expand Up @@ -267,7 +267,7 @@ to ``fpl.select_adapter()``::
# get info or summary of all adapters to pick an adapter
import pprint
for a in fpl.enumerate_adapters():
pprint.pprint(a.info)
pprint.pprint(a.request_adapter_info())

# example, pick adapter at index 2
chosen_gpu = fpl.enumerate_adapters()[2]
Expand Down
2 changes: 1 addition & 1 deletion examples/tests/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_wgpu_backend():
"""
Query the configured wgpu backend driver.
"""
code = "import wgpu.utils; info = wgpu.utils.get_default_device().adapter.info; print(info['adapter_type'], info['backend_type'])"
code = "import wgpu.utils; info = wgpu.utils.get_default_device().adapter.request_adapter_info(); print(info['adapter_type'], info['backend_type'])"
result = subprocess.run(
[
sys.executable,
Expand Down
4 changes: 2 additions & 2 deletions fastplotlib/utils/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def _notebook_print_banner():

# print logo and adapter info
adapters = [a for a in wgpu.gpu.enumerate_adapters()]
adapters_info = [a.info for a in adapters]
adapters_info = [a.request_adapter_info() for a in adapters]

default_adapter_info = wgpu.gpu.request_adapter().info
default_adapter_info = wgpu.gpu.request_adapter().request_adapter_info()
default_ix = adapters_info.index(default_adapter_info)

if len(adapters) > 0:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

install_requires = [
"numpy>=1.23.0",
"wgpu>=0.16.0",
"pygfx>=0.1.14",
"wgpu<0.16.0",
"pygfx>=0.1.14,<=0.2.0",
]


Expand Down