EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
GPU: upload_buf keeps its own doc comment
bflatastic45eacf1b1758
diff --git a/crates/gpu/src/context.rs b/crates/gpu/src/context.rsindex 0c5763a7b..3c372222a 100644--- a/crates/gpu/src/context.rs+++ b/crates/gpu/src/context.rs@@ -917,14 +917,14 @@ impl GpuContext {Some(g)}- /// Upload a (layer cache) buffer, reusing the texture while the same `Arc` is alive: static- /// layers upload once, not every frame./// Entries in the layer upload cache.#[cfg(test)]pub(crate) fn upload_entries(&self) -> usize {self.uploads.lock().map(|u| u.map.len()).unwrap_or_default()}+ /// Upload a (layer cache) buffer, reusing the texture while the same `Arc` is alive: static+ /// layers upload once, not every frame.pub(crate) fn upload_buf(&self, buf: &Arc<Buf>) -> Option<GpuImage> {let key = Arc::as_ptr(buf) as usize;if let Ok(mut u) = self.uploads.lock() {