Optionaloptions: GpuReadbackSourceOptionsReadonlycolorThe colour space of the texels this source produces. Default "srgb"
— a deliberate difference from TextureSource's "linear" default, with
the reason written at both (RFC 0004 Q3, adopted): R-15's linear default
exists only so that already-authored textures and their pixel goldens do
not move, a class that did not exist then has neither, and a host 2D
canvas produces sRGB-encoded bytes unambiguously. Choosing "linear" here
for consistency would make the new tier wrong on purpose.
ReadonlyheightHeight in texels. A finite integer ≥ 1. Constant until the application calls CanvasTexture.resize after changing it.
ReadonlyisReadonlyoriginWhich row RasterSource.readPixels writes first — see
RasterOrigin. Default "bottom-left". Read once, at
CanvasTexture construction, like the size.
ReadonlytargetReadonlywidthWidth in texels. A finite integer ≥ 1. Constant until the application calls CanvasTexture.resize after changing it.
Retained CPU bytes, excluding the target and any wrapping CanvasTexture.
Whether this source has released its snapshot.
Copy the last successful snapshot, initially zeros. Never calls the GPU.
Pull one snapshot. Concurrent refreshes are refused; backend errors propagate.
Asynchronously refreshed pixels with a synchronous, stable RasterSource view.