iced_wgpu 0.2.0

A wgpu renderer for Iced
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Viewport;

/// A rendering target.
#[derive(Debug)]
pub struct Target<'a> {
    /// The texture where graphics will be rendered.
    pub texture: &'a wgpu::TextureView,

    /// The viewport of the target.
    ///
    /// Most of the time, you will want this to match the dimensions of the
    /// texture.
    pub viewport: &'a Viewport,
}