Skip to main content

Crate mln_webgpu

Crate mln_webgpu 

Source
Expand description

The WebGPU backend, on the wgpu crate: WebGpu, the backend’s Gpu, with its shaders, and the targets the renderer draws frames into.

A RendererBackend renders on a Device, into an OffscreenTarget, a SurfaceTarget or a BorrowedTarget built on it.

Structs§

BorrowedTextures
A ring of the host’s 2D textures, of size pixels and one format, with one layer, one mip level, one sample and RENDER_ATTACHMENT usage.
CustomLayerEncoder
The frame’s command encoder outside the map’s render pass, for a custom layer’s prerender. End each pass begun on encoder before the call returns, and leave the encoder in place.
CustomLayerPass
The map’s render pass at a custom layer’s place in the style.
Device
A WebGPU device that renderers on any thread share: the library’s, or the host’s. Clones share it.
OverlayTarget
What an overlay draws into (SurfaceTarget::set_overlay): the frame’s surface texture, after the map and before it is presented.
RendererBackend
A renderer’s backend on a Device: the WebGpu that its resources belong to, and that the targets built on it import their textures into.
SurfaceOptions
How a SurfaceTarget presents.
SurfaceTarget
Frames presented to a wgpu::Surface.
WebGpu
A Gpu on a WebGPU Device.
WebGpuRing
A BorrowedTarget’s part on WebGPU: both sides share the device’s queue, so frames need no separate sync objects.

Functions§

depth_stencil_format
The depth and stencil format that format is, if it is one.

Type Aliases§

BorrowedTarget
Frames drawn into the host’s textures, each given back to the host.
OffscreenTarget
Frames drawn into textures of the library’s and read back.
Overlay
Draws over a frame (SurfaceTarget::set_overlay), submitting its own commands to the queue.