• v0.4.1 6608441c48

    v0.4.1
    Some checks failed
    ci / android (push) Has been cancelled
    ci / cross (push) Has been cancelled
    ci / check (push) Has been cancelled
    Stable

    gntx released this 2026-11-02 21:34:42 +01:00 | 80 commits to main since this release

    Smooth edges for meshes: a window, and an offscreen render, can be drawn at
    several samples per pixel. All additive: nothing changes for an app that
    does not ask for it.

    forma-app

    Added

    • Settings::msaa and WindowSettings::msaa: how many samples per pixel a
      window is drawn at, 1 by default. msaa(4) smooths the edges of meshes
      (PaintCx::mesh). What forma draws of its own looks the same, and a frame
      takes that many times the memory.

    forma-winit, forma-android

    Added

    • run draws a window at the samples its settings ask for. A count the device
      cannot do is lowered to the next one it can, and said on stderr.

    forma-wgpu

    Added

    • WindowSurface::set_samples, WindowSurface::samples,
      SurfaceRenderer::set_samples and Offscreen::set_samples, which return the
      count they draw with: the largest up to the one asked for that the device
      can do (ADR 0118).

    Changed

    • On a multisampled target quads and images are drawn on the pixels one sample
      would draw, so that a rect at a fractional position stays crisp. A target
      that an app multisampled itself (TargetFormat::samples) gets this too: its
      fractional rects were blurred along their edges until now.
    Downloads