mirror of
https://github.com/HeyPuter/gex.git
synced 2026-11-13 20:12:43 -10:00
guest/gpu/transport-dev.c is the wire client's transport in a guest: one ioctl per message, the reply written to the guest's buffer (or held for GEX_GPU_FETCH when it does not fit). shims/native/src/gpu.rs is the device, every open a connection with a wire server of its own; crates/gex-webgpu builds wire-server.c against Dawn (GEX_DAWN_PREFIX) and runs every server on one thread, since Dawn's error scopes are per thread. gexc's `webgpu` feature turns it on. wire-server.c gains gexgpu_server_destroy for a closed connection. guest/gpu/test/gpu-smoke.c, built static for aarch64 by build-guest.sh, runs a compute shader through it: "gpu-smoke: ok" on an M4 Pro under gexc run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_f0a06c8a084b4b2ca4f7f291183d507d