BufferTextureLayout class final
How texel rows sit in a buffer on either side of a buffer–texture copy.
- Annotations
Constructors
- BufferTextureLayout({int offsetInBytes = 0, required int bytesPerRow, int? rowsPerImage})
-
Creates a layout of rows
bytesPerRowbytes apart fromoffsetInBytes.const
Properties
- bytesPerRow → int
-
Bytes from one row to the next. WebGPU requires a multiple of 256 for a
copy encoded on the GPU; a backend that needs that says so by refusing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- offsetInBytes → int
-
Where the first texel row starts in the buffer, in bytes; zero by default.
final
- rowsPerImage → int?
-
Rows from one layer to the next; null means the copy's height.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited