KernelPixels class final
RGBA8 texels in host memory, rows from the top, read and written as a kernel reads and writes a texture and an image: for a test, and for a backend whose textures are bytes already.
- Inheritance
-
- Object
- KernelTexture
- KernelPixels
- Implemented types
Constructors
- KernelPixels(int width, int height, {Uint8List? rgba})
-
width×heighttexels overrgba, four bytes each; zeros whenrgbais not given.
Properties
Methods
-
load(
int x, int y, Float32List out) → void -
Writes the texel at (
x,y) of the base level intorgba, as four floats from nought to one, or four zeros outside the texture.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
store(
int x, int y, Float32List value) → void -
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.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited