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.
A RendererBackend renders on a Device, into an OffscreenTarget
or a SurfaceTarget built on it.
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 from the C++ headers, with the port’s changes
(shaders::wgsl_sources).
Re-exports§
pub use borrowed_target::BorrowedTarget;pub use borrowed_target::BorrowedTextures;pub use context::Context;pub use device::Device;pub use offscreen_target::OffscreenTarget;pub use renderer_backend::RendererBackend;pub use surface_target::SurfaceOptions;pub use surface_target::SurfaceTarget;
Modules§
- borrowed_
target - buffer_
resource - command_
encoder - context
- device
- draw_
target - drawable
- drawable_
builder - layer_
group - offscreen_
target - offscreen_
texture - render_
pass - renderer_
backend - shaders
- Ports include/mln/shaders/webgpu and src/mln/shaders/webgpu.
- surface_
target - texture2d
- tile_
layer_ group - uniform_
buffer - upload_
pass - vertex_
buffer_ resource