summaryrefslogtreecommitdiffstats
path: root/wgpu/src/target.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-09 03:44:16 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-09 03:44:16 +0100
commit9a73c3a88d92262b4e59c1f061b1c56e533e2b0b (patch)
tree05014ecebcbd31c043f2e168de4830a96fa3cc32 /wgpu/src/target.rs
parent8f0b59a4b28bee028a879b0705eeeaa0b2e82df6 (diff)
downloadiced-9a73c3a88d92262b4e59c1f061b1c56e533e2b0b.tar.gz
iced-9a73c3a88d92262b4e59c1f061b1c56e533e2b0b.tar.bz2
iced-9a73c3a88d92262b4e59c1f061b1c56e533e2b0b.zip
Write documentation for new `iced_wgpu` types
Diffstat (limited to 'wgpu/src/target.rs')
-rw-r--r--wgpu/src/target.rs6
1 files changed, 6 insertions, 0 deletions
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,
}