pygfx / wgpu-py

WebGPU for Python
https://wgpu-py.readthedocs.io
BSD 2-Clause "Simplified" License
419 stars 34 forks source link

Use a better class for flags and enums #562

Closed almarklein closed 1 month ago

almarklein commented 1 month ago

Closes #490

Implements the enum class that we added to pygfx earlier. Pygfx can drop its implementation and use the one from wgpu.

The advantage is better support for static analysis (e.g. autocompletion in editors), as well as prettier docs.