WebGPU now available for testing in Safari Technology Preview
Safari Technology Preview 185 ships an early WebGPU implementation, enabled via the "WebGPU", "GPU Process: DOM Rendering" and "GPU Process: Canvas Rendering" feature flags. A walkthrough of the core API shows requesting an adapter and GPUDevice, configuring a GPUCanvasContext, building a GPURenderPipeline from a WGSL shader module, and encoding and submitting a draw call through a GPURenderPassEncoder. A complete WGSL vertex/fragment shader draws a colored triangle, and developers are asked to try the WebGPU samples and file bugs at bugs.webkit.org.
Related posts
- Figma rendering: Powered by WebGPU
Figma mediumAdept
Figma migrated its C++ renderer from WebGL to WebGPU while keeping WebGL as a fallback, first refactoring its graphics interface to pass draw-call state explicitly and to batch uniform uploads into a single buffer per submit to avoid performance regressions. Legacy WebGL 1 GLSL shaders are kept and automatically translated to WGSL via a custom shader processor plus naga, and Dawn is used for both the Emscripten/Wasm build and native server-side builds. Because WebGPU only supports asynchronous readback and can fail mid-session on Windows, Figma built a dynamic fallback that swaps backends to WebGL at runtime and blocklists devices by fallback rate. Benchmarks across Windows, Mac and ChromeOS showed gains on some device classes and neutral results elsewhere with no regressions, and compute shaders, MSAA and RenderBundles are next.
- Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI
Hugging Face mediumAdeptHugging Face released @huggingface/kernels, a JavaScript loader for 207 Apache-2.0 WebGPU kernels published as versioned Hub repositories. Each repository bundles a manifest contract, correctness and benchmark cases, and Jinja-templated WGSL shaders with multiple variants per shape and device. On an Apple M4, 809 comparable cases ran 2.57x faster by geometric mean (1.90x median) than ONNX Runtime Web's WebGPU backend, with some outliers in Einsum and CumSum exceeding 300x. Those figures measure GPU time per operation, not full models. Fleet, an in-browser benchmarking tool, crowdsources correctness and performance results across real devices to improve variant selection.
- Transformers.js v3: WebGPU Support, New Models & Tasks, and More…
Hugging Face mediumAdeptTransformers.js v3 adds WebGPU acceleration via ONNX Runtime Web, claimed up to 100x faster than WASM and enabled by passing `device: 'webgpu'` when loading a pipeline. A new `dtype` option replaces the old boolean `quantized` flag and supports fp32, fp16, 8-bit and 4-bit variants, including per-module dtypes for quantization-sensitive encoder-decoder models like Whisper and Florence-2. The release also expands support to 120 architectures and over 1200 pre-converted Hub models, and adds Node.js, Deno and Bun compatibility under the new @huggingface/transformers npm package. WebGPU reaches only about 70% of browsers, so some users need feature flags.
- The Future of React Native Graphics: WebGPU, Skia, and Beyond
Shopify Engineering easyNoviceReact Native WebGPU, built on Google's Dawn, lets React Native apps run Three.js, React Three Fiber, TSL shaders, ComputeToys compute shaders and TensorFlow.js on Metal (iOS) and Vulkan (Android) with no changes, which collapses the separate OpenGL and Metal backends into one. Lessons from that work fed back into React Native Skia. Moving from a mutable C++ scene graph (SkiaDOM) to an immutable, Fabric-reconciler display list made animation up to 50% faster on iOS and nearly 200% faster on Android, while fixing 98% of reported Android crashes. Skia also gained macOS, tvOS and headless Node.js targets, and the experimental Skia Graphite backend previews automatic threading and two-way 2D/3D texture composition.
- Leveraging Rust and the GPU to render user interfaces at 120 FPS
Zed hardMasterZed's GPUI framework hits 120 FPS by rendering the editor UI like a video game: rather than a general-purpose 2D vector renderer (Pathfinder proved too slow), it uses dedicated GPU shaders for a small set of primitives such as rectangles, shadows, text, icons and images, all described as data on the CPU and drawn with instanced rendering. Rounded rectangles come from a signed distance function evaluated in a Metal fragment shader. Drop shadows follow Evan Wallace's approximation, which pairs a closed-form erf-based Gaussian convolution on one axis with a few samples along the other. Text uses OS shaping via CoreText, with a per-frame cache of text-font pairs so only changed text gets reshaped.