Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Fix type casting for buffer sources in rendering utils
Richie McIlroy0e60c967daf4
diff --git a/apps/desktop/src/utils/socket.ts b/apps/desktop/src/utils/socket.tsindex f5a2899d5..8d0c5bd60 100644--- a/apps/desktop/src/utils/socket.ts+++ b/apps/desktop/src/utils/socket.ts@@ -262,7 +262,7 @@ export function createImageDataWS(}const imageData = new ImageData(- new Uint8ClampedArray(frameData.buffer),+ new Uint8ClampedArray(frameData.buffer as ArrayBuffer),width,height,);diff --git a/apps/desktop/src/utils/webgpu-renderer.ts b/apps/desktop/src/utils/webgpu-renderer.tsindex fb7078b05..306fed630 100644--- a/apps/desktop/src/utils/webgpu-renderer.ts+++ b/apps/desktop/src/utils/webgpu-renderer.ts@@ -198,7 +198,7 @@ export function renderFrameWebGPU(device.queue.writeTexture({ texture: renderer.frameTexture },- textureData,+ textureData.buffer as unknown as GPUAllowSharedBufferSource,{ bytesPerRow, rowsPerImage: height },{ width, height },);