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
Implemented types

Constructors

KernelPixels(int width, int height, {Uint8List? rgba})
width × height texels over rgba, four bytes each; zeros when rgba is not given.

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → int
In texels.
final
rgba → Uint8List
The texels, four bytes each, row by row from the top.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
In texels.
final

Methods

load(int x, int y, Float32List out) → void
Writes the texel at (x, y) of the base level into rgba, 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