diff --git a/vello/src/scene.rs b/vello/src/scene.rs index 7c06aac42..83edd04b9 100644 --- a/vello/src/scene.rs +++ b/vello/src/scene.rs @@ -65,6 +65,13 @@ impl Scene { &self.encoding } + /// Returns a mutable reference to the underlying raw encoding. + /// + /// This can be used to more easily create invalid scenes, and so should be used with care. + pub fn encoding_mut(&mut self) -> &mut Encoding { + &mut self.encoding + } + /// Pushes a new layer clipped by the specified shape and composed with /// previous layers using the specified blend mode. ///