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§
- Borrowed
Target - Frames drawn into the host’s textures, each given back to the host.
- Borrowed
Textures - A ring of the host’s 2D textures, of
sizepixels and one format, with one layer, one mip level, one sample andRENDER_ATTACHMENTusage. - Custom
Layer Encoder - The frame’s command encoder outside the map’s render pass, for a custom
layer’s prerender. End each pass begun on
encoderbefore the call returns, and leave the encoder in place. - Custom
Layer Pass - 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.
- Overlay
Target - What an overlay draws into (
SurfaceTarget::set_overlay): the frame’s surface texture, after the map and before it is presented. - Renderer
Backend - A renderer’s backend on a
Device: theWebGputhat its resources belong to, and that the targets built on it import their textures into. - Surface
Options - How a
SurfaceTargetpresents. - Surface
Target - Frames presented to a
wgpu::Surface. - WebGpu
- A
Gpuon a WebGPUDevice.
Functions§
- depth_
stencil_ format - The depth and stencil format that
formatis, if it is one.
Type Aliases§
- Offscreen
Target - 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.