BrowserRenderer
enum · ferroui-browser · v0.5.0
enum BrowserRenderer
The render backend a module draws with.
Not in the original, which has one backend. The rendering modes
(BrowserRenderingMode) keep their meaning with either: they say what
the canvas of a view is (the canvas of a WebGL context, a 2D canvas),
and the backend draws to it with what it has for that kind of canvas.
| mode | Skia | Vello |
|---|---|---|
WebGL2 |
Ganesh | the hybrid mode (vello_gpu over the WebGL2 context) |
WebGL1 |
Ganesh | not drawn: the mode is taken out of the list |
Software2D |
Skia raster | the CPU mode (vello_cpu) |
Members
Skia
Skia
The Skia backend.
Vello
Vello
The Vello backend. The module has to be built with the feature
vello of this crate.
parse
fn parse(name: &str) -> Option<BrowserRenderer>
The backend with the given name, ignoring case.
name
fn name(self: Self) -> &'static str
The name of the backend.
is_available
fn is_available(self: Self) -> bool
Whether the module was built with the backend.
rendering_modes
fn rendering_modes(self: Self, modes: &[BrowserRenderingMode]) -> Vec<BrowserRenderingMode>
The rendering modes of modes the backend draws, in their order.
The Vello backend has no renderer for WebGL 1; a list that asks for
nothing else is drawn in memory.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedUpcast<T>ResourceKeyObjectPropertyValueAnyValueClassDefaultsCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashErasedDestructorIntoEither
Availability
Extracted for wasm32-unknown-emscripten, aarch64-apple-darwin. Cargo features are listed in the crate index.