Crate iced_wgpu[][src]

A wgpu renderer for iced_native.

The native path of the Iced ecosystem

For now, it is the default renderer of Iced in native platforms.

wgpu supports most modern graphics backends: Vulkan, Metal, DX11, and DX12 (OpenGL and WebGL are still WIP). Additionally, it will support the incoming WebGPU API.

Currently, iced_wgpu supports the following primitives:

  • Text, which is rendered using wgpu_glyph. No shaping at all.
  • Quads or rectangles, with rounded borders and a solid background color.
  • Clip areas, useful to implement scrollables or hide overflowing content.
  • Images and SVG, loaded from memory or the file system.
  • Meshes of triangles, useful to draw geometry freely.

Re-exports

pub use wgpu;
pub use settings::Settings;
pub use widget::*;

Modules

settings

Configure a renderer.

triangle

Draw meshes of triangles.

widget

Use the widgets supported out-of-the-box.

window

Display rendering results on windows.

Structs

Backend

A wgpu graphics backend for iced.

Color

A color in the sRGB color space.

Defaults

Some default styling attributes.

Viewport

A viewing region for displaying computer graphics.

Enums

Antialiasing

An antialiasing strategy.

Error

A graphical error that occurred while running an application.

Primitive

A rendering primitive.

Type Definitions

Renderer

A wgpu graphics renderer for iced.