Skip to content

Native 0.1.0

Choose a tag to compare

@pissang pissang released this 25 Oct 04:23

Experimental Rust and C GPU denoising on Metal, Vulkan and Direct3D 12, using the same WGSL kernels as the browser package.

Downloads

  • Four precompiled C packages: macOS ARM64, macOS x86_64, Windows x86_64 MSVC and Linux x86_64 GNU. Each contains the shared library, headers, planner core and application examples.
  • A Rust .crate containing all four verified planner cores. Extract it and use a local Cargo path dependency to build without Node, npm, Zig or a build-time GitHub download. Cargo dependencies still need to be available.
  • Raw planner cores, their target manifest, license notices and SHA-256 checksums.

The Rust package is available on crates.io:

[dependencies]
oidn-webgpu = { package = "oidn-webgpu-native", version = "0.1.0" }

The native guide also describes Git dependencies and precompiled core overrides.

Rust hosts use their own wgpu buffers and encoder and must resolve the same wgpu 30.0.1 crate and source. The C API accepts packed CPU RGBA32F images, creates its own device and blocks through readback. Weights are separate from these downloads.

Validation

Four-platform CI verifies package hashes and C/Rust interfaces, then unpacks the assembled crate outside the checkout and runs publish dry-runs and Rust examples without Node/scriptc. Hosted CI does not run GPU inference.

On Apple M4 Max / macOS Metal, 27 external C/Rust cases passed, including odd dimensions, tiling, checked/unchecked shaders, cooperative matrices and host-owned buffers. All 15 output comparisons were byte-identical. Four native GPU regression tests also passed. Windows/Linux and Intel Mac GPU execution were not exercised in this local validation.

Native API and integration guide · Browser release 0.6.0

Source: 1d7dd4a. Four-platform CI.