Renderer · type
QualityForBackend
The quality to build with, or a function of the backend createRenderer chose.
Explained in Hello world.
type QualityForBackend = RenderQualityOptions | ((backend: RenderBackend) => RenderQualityOptions)import type { QualityForBackend } from '@driftengine/core';In depth
A function is how an option only one backend has is asked of that backend alone. Traced
indirect light and reconstruction are WebGPU's, and WebGL2 refuses either in words when handed
one: right for a consumer who asked for it there, and noise for one who wanted it wherever it
runs, since every device that fell back printed a refusal. Called once for the backend that
draws, and once more for WebGPU's timing request where WebGPU is tried. What would make it wrong
is a consumer needing to know why the backend fell back before choosing, which reason on the
result says after the fact and nothing says before.