GpuFormat enum
A texture's pixel format.
Values
- rgba8 → const GpuFormat
-
8-bit RGBA, linear.
- rgba8Srgb → const GpuFormat
-
8-bit RGBA, sRGB-encoded colour (sampling decodes to linear).
- bgra8 → const GpuFormat
-
8-bit BGRA, linear.
- bgra8Srgb → const GpuFormat
-
8-bit BGRA, sRGB.
- rgba16f → const GpuFormat
-
16-bit float RGBA (HDR colour).
- rgba32f → const GpuFormat
-
32-bit float RGBA (joint palettes, data).
- r32f → const GpuFormat
-
One 32-bit float channel (shadow depth written as colour).
- depth24Stencil8 → const GpuFormat
-
24-bit depth with 8-bit stencil.
- depth32fStencil8 → const GpuFormat
-
32-bit float depth with 8-bit stencil.
- etc2Rgb8 → const GpuFormat
-
ETC2 RGB, linear.
- etc2Rgb8Srgb → const GpuFormat
-
ETC2 RGB, sRGB.
- etc2Rgba8 → const GpuFormat
-
ETC2 RGBA, linear.
- etc2Rgba8Srgb → const GpuFormat
-
ETC2 RGBA, sRGB.
- astc4x4 → const GpuFormat
-
ASTC 4×4, linear.
- astc4x4Srgb → const GpuFormat
-
ASTC 4×4, sRGB.
- astc8x8 → const GpuFormat
-
ASTC 8×8, linear.
- astc8x8Srgb → const GpuFormat
-
ASTC 8×8, sRGB.
- bc7 → const GpuFormat
-
BC7, linear.
- bc7Srgb → const GpuFormat
-
BC7, sRGB.
Properties
- compression → GpuCompression?
-
The compression family, or null for an uncompressed format.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isCompressed → bool
-
Whether this is a block-compressed format (sample-only, sizes in
whole blocks).
no setter
- isDepth → bool
-
Whether this is a depth (and stencil) format.
no setter
- isSrgb → bool
-
Whether sampling decodes sRGB to linear.
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