TextureFormat enum

The layout of one texel.

Named TextureFormat rather than PixelFormat because dart:ui exports a PixelFormat of its own, for image data rather than for textures, and every application on this engine imports both libraries. The values are flutter_gpu's, unchanged.

Inheritance
Available extensions

Values

unknown → const TextureFormat
a8UNormInt → const TextureFormat
r8UNormInt → const TextureFormat
r8g8UNormInt → const TextureFormat
r8g8b8a8UNormInt → const TextureFormat
r8g8b8a8UNormIntSRGB → const TextureFormat
b8g8r8a8UNormInt → const TextureFormat
b8g8r8a8UNormIntSRGB → const TextureFormat
r32g32b32a32Float → const TextureFormat
r16g16b16a16Float → const TextureFormat
r32Float → const TextureFormat
s8UInt → const TextureFormat
d24UnormS8Uint → const TextureFormat
d32FloatS8UInt → const TextureFormat
bc1RGBAUNormInt → const TextureFormat
bc1RGBAUNormIntSRGB → const TextureFormat
bc3RGBAUNormInt → const TextureFormat
bc3RGBAUNormIntSRGB → const TextureFormat
bc5RGUNormInt → const TextureFormat
bc7RGBAUNormInt → const TextureFormat
bc7RGBAUNormIntSRGB → const TextureFormat
etc2RGB8UNormInt → const TextureFormat
etc2RGB8UNormIntSRGB → const TextureFormat
etc2RGBA8UNormInt → const TextureFormat
etc2RGBA8UNormIntSRGB → const TextureFormat
astc4x4LDR → const TextureFormat
astc4x4LDRSRGB → const TextureFormat
astc8x8LDR → const TextureFormat
astc8x8LDRSRGB → const TextureFormat
astc4x4HDR → const TextureFormat
astc8x8HDR → const TextureFormat

Properties

blockLayout → TextureBlockLayout

Available on TextureFormat, provided by the TextureFormatCompression extension

The block this format is stored in.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasStencil → bool

Available on TextureFormat, provided by the TextureFormatStencil extension

no setter
index → int
A numeric identifier for the enumerated value.
no setterinherited
isCompressed → bool

Available on TextureFormat, provided by the TextureFormatCompression extension

Sample-only everywhere: cannot be a render target, cannot be written by a shader, cannot be multisampled. See the doc comment on the enum's block-compressed tail for what every backend does with one instead.
no setter
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<TextureFormat>
A constant List of the values in this enum, in order of their declaration.