Hacker News new | ask | show | jobs
by the__alchemist 604 days ago
I was/am a bit confused: I think this is unrelated to the wgpu cross-API toolkit in rust, it just abbreviated WebGpu the same way?
2 comments

Per the `wgpu-py` README:

> Technically speaking, wgpu-py is a wrapper for wgpu-native, exposing its functionality with a Pythonic API closely resembling the WebGPU spec.

`wgpu-native` is a wrapper with FFI/bindings for the Rust `wgpu` per their READMEs

Same, I had assumed they weren't independent.

/?PyPI wgpu: https://pypi.org/search/?q=wgpu

Looks like xgpu is where it's actually at.

xgpu: https://github.com/pyrym/xgpu :

> xgpu is an aggressively typed, red-squiggle-free Python binding of wgpu-native, autogenerated from the upstream C headers

wgpu-py has a conda-forge package: https://anaconda.org/conda-forge/wgpu-py