aboutsummaryrefslogtreecommitdiff
path: root/src/render_helpers/texture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/render_helpers/texture.rs')
-rw-r--r--src/render_helpers/texture.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render_helpers/texture.rs b/src/render_helpers/texture.rs
index 47349990..cb2d3799 100644
--- a/src/render_helpers/texture.rs
+++ b/src/render_helpers/texture.rs
@@ -19,7 +19,7 @@ pub struct TextureBuffer<T> {
}
/// Render element for a [`TextureBuffer`].
-#[derive(Debug)]
+#[derive(Debug, Clone)]
pub struct TextureRenderElement<T> {
buffer: TextureBuffer<T>,
location: Point<f64, Logical>,
@@ -121,6 +121,10 @@ impl<T> TextureRenderElement<T> {
kind,
}
}
+
+ pub fn buffer(&self) -> &TextureBuffer<T> {
+ &self.buffer
+ }
}
impl<T: Texture> TextureRenderElement<T> {