# BrowserRenderer

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-browser/enum-browserrenderer/

**enum** · [`ferroui-browser`](/docs/0.5.0/api/ferroui-browser/) · v0.5.0

```rust
enum BrowserRenderer
```

The render backend a module draws with.

Not in the original, which has one backend. The rendering modes
([`BrowserRenderingMode`](/docs/0.5.0/api/ferroui-browser/enum-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`) |

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L61)

## Members

- [`Skia`](#variant-skia)
- [`Vello`](#variant-vello)
- [`parse`](#function-parse)
- [`name`](#function-name)
- [`is_available`](#function-is_available)
- [`rendering_modes`](#function-rendering_modes)

<a id="variant-skia"></a>

### Skia

```rust
Skia
```

The Skia backend.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L64)

<a id="variant-vello"></a>

### Vello

```rust
Vello
```

The Vello backend. The module has to be built with the feature
`vello` of this crate.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L68)

<a id="function-parse"></a>

### parse

```rust
fn parse(name: &str) -> Option<BrowserRenderer>
```

The backend with the given name, ignoring case.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L73)

<a id="function-name"></a>

### name

```rust
fn name(self: Self) -> &'static str
```

The name of the backend.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L78)

<a id="function-is_available"></a>

### is_available

```rust
fn is_available(self: Self) -> bool
```

Whether the module was built with the backend.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L86)

<a id="function-rendering_modes"></a>

### rendering_modes

```rust
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.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L96)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `wasm32-unknown-emscripten`, `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
