Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(rendering): stop Send inference at the Linux shared GPU buffers
Richie McIlroyd17a563cd94c
diff --git a/crates/rendering/src/linux_gpu.rs b/crates/rendering/src/linux_gpu.rsindex 5a0d5b691..67a9621f7 100644--- a/crates/rendering/src/linux_gpu.rs+++ b/crates/rendering/src/linux_gpu.rs@@ -403,6 +403,15 @@ pub struct RingSlot {device: wgpu::Device,}+// Every field is already `Send + Sync` (wgpu handles, atomics and raw+// Vulkan/CUDA handles). Stating it here stops auto-trait inference at these+// types: otherwise a `Send` check on a rendered frame walks wgpu-core's+// object graph and overflows the recursion limit in downstream crates.+unsafe impl Send for SharedBuffer {}+unsafe impl Sync for SharedBuffer {}+unsafe impl Send for RingSlot {}+unsafe impl Sync for RingSlot {}+impl RingSlot {pub fn release(&self) {self.busy.store(false, Ordering::Release);