DriftCapture · type
Frame
A frame this rasteriser writes: single precision where it stands in for a render target, double where the caller is differentiating through it. The fitting loop accumulates its loss in double and a frame quantised to single is a floor under every difference taken through one — measured at about a part in five hundred of the slope, against a part in ten million when the frame is double.
Explained in DriftCapture.
type Frame = Float32Array | Float64Arrayimport type { Frame } from '@driftengine/capture';