Hacker News new | ask | show | jobs
by westurner 604 days ago
pygfx/pygfx: https://github.com/pygfx/pygfx :

> Pygfx (pronounced “py-graphics”) is built on wgpu, enabling superior performance and reliability compared to OpenGL-based solutions.

pygfx/wgpu-py: https://github.com/pygfx/wgpu-py/ :

> A Python implementation of WebGPU

gfx-rs/wgpu: https://github.com/gfx-rs/wgpu :

> wgpu is a cross-platform, safe, pure-rust graphics API. It runs natively on Vulkan, Metal, D3D12, and OpenGL; and on top of WebGL2 and WebGPU on wasm.

> The API is based on the WebGPU standard. It serves as the core of the WebGPU integration in Firefox and Deno

1 comments

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?
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