mirror of
https://github.com/HeyPuter/gex.git
synced 2026-11-13 20:12:43 -10:00
The wire's server can give every client the host's adapter and device (gexgpu_server_set_shared; requests answered at once, and a client cannot destroy the device), and the page's build imports a JS GPUAdapter and GPUDevice for it. The compositor's worker hosts the server on its device (Compositor.hostGpu), so a guest's textures are on the device that draws the screen, which presenting a guest's frames without a copy needs; a page with no compositor serves it itself. web/test/gpu-compositor.html runs gpu-smoke against the compositor's server: "gpu-smoke: ok" in Chrome. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_f0a06c8a084b4b2ca4f7f291183d507d