diff options
Diffstat (limited to 'wgpu/src/target.rs')
-rw-r--r-- | wgpu/src/target.rs | 6 |
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, } |