summaryrefslogtreecommitdiffstats
path: root/wgpu/src/target.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/target.rs')
-rw-r--r--wgpu/src/target.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/wgpu/src/target.rs b/wgpu/src/target.rs
new file mode 100644
index 00000000..1e72c0c3
--- /dev/null
+++ b/wgpu/src/target.rs
@@ -0,0 +1,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,
+}