Skip to content

Add preferred features for preconfigure_default_device#817

Merged
almarklein merged 7 commits into
mainfrom
preferred-features
Jun 25, 2026
Merged

Add preferred features for preconfigure_default_device#817
almarklein merged 7 commits into
mainfrom
preferred-features

Conversation

@almarklein

Copy link
Copy Markdown
Member

This solves two problems:

  • Being able to select native features.
  • Being able to select features, but providing a fallback if it's not available.

These can be though of as being the same; when running in the browser, the native features are not available.

Very practically, this will allow PyGfx to enable filtered uint16 textures, see pygfx/pygfx#1305

@almarklein almarklein requested a review from Vipitis June 24, 2026 09:17
Comment thread wgpu/utils/device.py Outdated
Comment thread wgpu/utils/device.py Outdated
almarklein and others added 2 commits June 24, 2026 15:12
Co-authored-by: Jan <Vipitis@users.noreply.github.com>
Vipitis
Vipitis previously approved these changes Jun 24, 2026
Comment thread wgpu/utils/device.py Outdated
Vipitis
Vipitis previously approved these changes Jun 24, 2026
@almarklein almarklein mentioned this pull request Jun 25, 2026
@almarklein

Copy link
Copy Markdown
Member Author

sry, I took some more time to clean it up just a bit more.

@almarklein almarklein requested a review from Vipitis June 25, 2026 07:17

@Vipitis Vipitis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, I like the utility. I got a private branch with some ideas regarding #789 that could be added to it in the future.

@almarklein almarklein merged commit 72997c6 into main Jun 25, 2026
19 checks passed
@almarklein almarklein deleted the preferred-features branch June 25, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants