Skip to content

Conversation

@almarklein
Copy link
Member

@almarklein almarklein commented Sep 22, 2025

Use the class-based structs from pygfx/wgpu-py#748

I find that it makes the code easier to read; the classname makes it very explicit what you're dealing with, and easy to look up more info.

I also did a bit of benchmarking (took an example, and made it renderer.render() as fast as possible for 5 secs), but could not find a significant difference.

This PR cannot be merged until there is a new wgpu-py release that includes pygfx/wgpu-py#748

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