store method
Writes rgba — four floats, clamped to nought and one and rounded to
the nearest of 256 levels, ties to even — to the texel at (x, y);
nothing outside the image.
Implementation
@override
void store(int x, int y, Float32List value) {
if (x < 0 || y < 0 || x >= width || y >= height) return;
final at = (y * width + x) * 4;
for (var c = 0; c < 4; c++) {
rgba[at + c] = unormLevel(value[c]);
}
}