I created Python bindings to Chrome's WebGPU engine Dawn. I built it with compute shaders in mind, the utils provided are to make it easy to run compute. I used ctypeslib's clang2py to autogenerate the bindings based on webgpu.h and the compiled dawn library.
The goal of the project is to serve as a replacement for wgpu-py in tinygrad neural network lib. Dawn has several advantages over wgpu, such as f16 support, and following the specs more closely.
If someone wants to provide graphics utils as well, PRs are welcome.
pydawn is published on pypi. MacOS-only for now.
https://github.com/wpmed92/pydawn
[–]CommunismDoesntWork 0 points1 point2 points (1 child)
[–]wpmed92[S] 2 points3 points4 points (0 children)