Write documentation for new iced_wgpu types
This commit is contained in:
parent
8f0b59a4b2
commit
9a73c3a88d
5 changed files with 16 additions and 1 deletions
|
|
@ -3,6 +3,12 @@ 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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue