Partially. wgpu can translate graphics api calls like WebGPU to platform specific APIs - this is something I had to implement on the backend. In the future, will likely tool on top of wgpu on the backend as wasi-gfx (WebGPU) becomes a reality.
What we do on top of that is compile the graphics code to wasm and provide a well-defined interface around it, so it can run/work inside any application.