[][src]Crate iced_wgpu

A wgpu renderer for iced_native.

iced_wgpu crate graph

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 defaults::Defaults;
pub use settings::Settings;
pub use widget::*;

Modules

defaults

Use default styling attributes to inherit styles.

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

Renderer

A wgpu renderer.

Target

A rendering target.

Viewport

A viewing region for displaying computer graphics.

Enums

Primitive

A rendering primitive.