From 9a73c3a88d92262b4e59c1f061b1c56e533e2b0b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 9 Feb 2020 03:44:16 +0100 Subject: Write documentation for new `iced_wgpu` types --- wgpu/src/target.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wgpu/src/target.rs') diff --git a/wgpu/src/target.rs b/wgpu/src/target.rs index 544e83d1..1e72c0c3 100644 --- a/wgpu/src/target.rs +++ b/wgpu/src/target.rs @@ -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, } -- cgit