Repository navigation
Overview
This release focuses on greatly expanding the ndarray features of the compute subsystem in both breadth and depth, as well as generalizing Python interop, enriching scientific visualizations, and improving runtime performance.
Commits: v0.10.0...v0.11.0.
Website: https://zushah.github.io/WasmGPU.
Highlights
- Added an ndarray namespace to the compute subsystem for creating ndarrays, wrapping existing storage buffers, and transferring ndarrays between WebAssembly and WebGPU memory, added zero-copy views for slicing (including NumPy-style slice strings, ellipses, and new axes), reshaping, transposing, broadcasting, expanding, squeezing, moving, swapping, and flipping axes, and added transformations for contiguous copying, casting, copying into existing ndarrays, padding, min-max and z-score normalizing, and multi-axis nearest, linear, and cubic resizing and resampling with optional antialiasing on both CPU and GPU ndarrays (394bbd4, 7cfc0cc, df796b0, 9bd7aee, f7087c3).
- Added axis-aware ndarray reductions for sums, products, means, variances, standard deviations, minimums, maximums, and their indices, as well as combined minimum-maximum, variance-mean, and standard-deviation-mean reductions, with kept dimensions, output data types, delta degrees of freedom, and propagating or omitting not-a-number handling on both CPU and GPU ndarrays (c65d056).
- Added 64-bit and 128-bit complex ndarray data types with real and imaginary part views, views between complex and interleaved real ndarrays, complex-aware casting, padding, and resizing, and complex transfers through Python interop (d2a7bde).
- Changed the compute kernels library to accept and return ndarrays with broadcasting and strided operands, removed the type-specific kernels in favor of data-type-generic kernels for elementwise arithmetic, dot products, matrix multiplication, reductions, prefix scans, histograms, compaction, sorting, lower-upper factoring and solving, and data scaling, and removed the per-ndarray GPU upload and CPU readback methods in favor of transfers through the ndarray namespace (394bbd4, 64640d3, c65d056).
- Changed Python interop to transfer NumPy arrays with arbitrary strides, views, and data types in both directions, added layout order, copy, and casting policies, added exports into existing NumPy arrays, and added indexed views of WasmGPU arrays from Python (d2a7bde, 302395b).
- Added a color namespace with cividis, coolwarm, twilight, and HSV color maps alongside the six previously-existing color maps, as well as tab10, Okabe-Ito, and Chart.js palettes, added sRGB-correct color map sampling, linear or Oklab interpolation, color parsing and conversions, complex-valued mathematical function plotting, flat or tubular curve profiles, and per-coordinate geometry coloring, and removed the previous color map factory and the custom color map option with its color stops in favor of the new color namespace and color maps built from color stops (9980746).
- Added wrapping of external WebGPU storage buffers, added folded dispatches for workloads beyond the per-dimension workgroup limit, fixed very large one-dimensional kernel and sort dispatches, and fixed kernels sharing a caller's command encoder so their parameters no longer overwrite each other (596bf36, 164d58b, 4b9b88a, c232857).
- Changed WebAssembly transforms, culling, animation, normal generation, ndarray casts, splatfield sorting, latticespace sorting, and pipeline selection for greater runtime performance, changed WebAssembly loading to stream the driver binary only once, and added splat count updates and data invalidation for splatfields with caller-supplied buffers (bdaa20b, 3e10a61, 6ca4812).
- Added a tomography example, overview videos rendered with Manim, responsive website layouts, faster website loading, and refined documentation prose (66e7068, c30335d, 381f5dc, 1179bf7, 53cfd6d).