# Win32RenderingMode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-win32/enum-win32renderingmode/

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

```rust
enum Win32RenderingMode
```

Represents the rendering mode for platform graphics.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Windows/FerroUI.Win32/win32_platform_options.rs#L11)

## Members

- [`Software`](#variant-software)
- [`AngleEgl`](#variant-angleegl)
- [`Wgl`](#variant-wgl)
- [`Vulkan`](#variant-vulkan)
- [`Direct3D11`](#variant-direct3d11)

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

### Software

```rust
Software = 1
```

The toolkit is rendered into a framebuffer.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Windows/FerroUI.Win32/win32_platform_options.rs#L13)

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

### AngleEgl

```rust
AngleEgl = 2
```

Enables ANGLE EGL for Windows with GPU rendering.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Windows/FerroUI.Win32/win32_platform_options.rs#L15)

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

### Wgl

```rust
Wgl = 3
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Windows/FerroUI.Win32/win32_platform_options.rs#L18)

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

### Vulkan

```rust
Vulkan = 4
```

The toolkit would try to use native Windows Vulkan with GPU
rendering.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Windows/FerroUI.Win32/win32_platform_options.rs#L21)

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

### Direct3D11

```rust
Direct3D11 = 5
```

A native D3D11 renderer owns its device and HWND swapchain. ANGLE is not initialized.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Windows/FerroUI.Win32/win32_platform_options.rs#L23)

## Trait implementations

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

## Availability

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