TraceCreateTextureFromPixels class final
GraphicsDevice.createTextureFromPixels: a 2D texture made holding
pixels.
- Inheritance
-
- Object
- TraceEvent
- TraceCreateTextureFromPixels
Constructors
-
TraceCreateTextureFromPixels({required int id, required int width, required int height, required TextureFormat format, required ByteData pixels, List<
ByteData> ? mipLevels}) -
Records a
widthbyheighttexture offormatmade frompixelsand, when given,mipLevels.const
Properties
- format → TextureFormat
-
The layout of pixels and of every level in mipLevels.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Height of the base level in texels.
final
- id → int
-
The id later events name this texture by, among textures.
final
- kind → String
-
The event's name in a trace file.
no setteroverride
-
mipLevels
→ List<
ByteData> ? -
The smaller levels, from half size downwards, as the caller supplied them;
null for a texture with only its base level.
final
- pixels → ByteData
-
The base level's bytes, row-major from the top, as the call took them.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
Width of the base level in texels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
TraceBlobWriter blob) → Map< String, Object?> -
Returns the event as the JSON object a trace file holds, without its
kindkey, with every byte payload handed tobloband written as the reference it returns.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited