Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(rendering): add prepare_output_size to FrameRenderer
Richie McIlroyb0b2e97b9e87
diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rsindex 6e8531a04..7f2e30660 100644--- a/crates/rendering/src/lib.rs+++ b/crates/rendering/src/lib.rs@@ -3315,6 +3315,13 @@ impl<'a> FrameRenderer<'a> {self.session = None;}+ pub fn prepare_output_size(&mut self, width: u32, height: u32) {+ let session = self+ .session+ .get_or_insert_with(|| RenderSession::new(&self.constants.device, width, height));+ session.update_texture_size(&self.constants.device, width, height);+ }+pub async fn render(&mut self,segment_frames: DecodedSegmentFrames,