-
v0.4.1
Stablereleased this
2026-11-02 21:34:42 +01:00 | 80 commits to main since this releaseSmooth 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::msaaandWindowSettings::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
rundraws 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_samplesandOffscreen::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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
1 download