Expand description
Ports the C++ WebGPU backend (src/mln/webgpu, include/mln/webgpu,
include/mln/shaders/webgpu, src/mln/shaders/webgpu, and the headless
backend from platform/default) onto the wgpu crate.
The C++ backend runs on Dawn or wgpu-native through the WebGPU C API; this
port makes the same calls through wgpu’s Rust API. Raw WGPU* handles
become wgpu objects (reference counted, so “release” is a drop), and the
Context& members of resources become Rc<Context>.
The WGSL comes unchanged from the C++ headers: //crates/mln_webgpu:wgsl_sources
runs tools/extract_wgsl.rs over them at build time and generates
shaders::wgsl_sources.
Re-exports§
pub use context::Context;pub use headless_backend::HeadlessBackend;pub use renderer_backend::RendererBackend;pub use surface_backend::SurfaceBackend;
Modules§
- buffer_
resource - command_
encoder - context
- drawable
- drawable_
builder - headless_
backend - layer_
group - offscreen_
texture - render_
pass - renderable_
resource - renderer_
backend - shaders
- Ports include/mln/shaders/webgpu and src/mln/shaders/webgpu.
- surface_
backend - texture2d
- tile_
layer_ group - uniform_
buffer - upload_
pass - vertex_
buffer_ resource