# FerroNativeRenderingMode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-native/enum-ferronativerenderingmode/

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

```rust
enum FerroNativeRenderingMode
```

Represents the rendering mode for platform graphics.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L47)

## Members

- [`OpenGl`](#variant-opengl)
- [`Software`](#variant-software)
- [`Metal`](#variant-metal)

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

### OpenGl

```rust
OpenGl = 1
```

The toolkit would try to use native OpenGL with GPU rendering.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L49)

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

### Software

```rust
Software = 2
```

The toolkit is rendered into a framebuffer.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L51)

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

### Metal

```rust
Metal = 3
```

The toolkit would try to use Metal with GPU rendering.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L53)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`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/)
- `ErasedDestructor`
- `IntoEither`
- `IUnknownImpl`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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