wgpu-py
wgpu-py copied to clipboard
Using context managers
There's a few places where the API could be made more Pythonic by supporting context managers.
Use-cases:
- The
buffer.map()andbuffer.unmap()is pretty obvious. - Maybe some part of the command encoders (which have
.end()), and/or the queue.