gfx-rs/wgpu ? reverse-engineered prompt
Reverse engineered prompt
Build me a cross platform graphics library in Rust that gives a safe, modern API for using the GPU, like WebGPU but as a native Rust crate.
I want it to work on Vulkan, Metal, D3D12, OpenGL, and on the web through wasm, and I want a few simple examples that show how to create a window, draw something basic, and load shaders. Please make it feel polished and production ready, with clear docs, tests where they make sense, and a small set of runnable demo examples.
If you need to look up current WebGPU details or platform specifics online, go ahead. Keep the API ergonomic for Rust users, and make sure the project builds cleanly and the examples can be run from the command line.
Are you gonna build this?
make sure you review the code using coderabbit