[−][src]Crate iced_wgpu
A wgpu
renderer for iced_native
.
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 | |
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. |
Primitive | A rendering primitive. |
Type Definitions
Renderer |