VkFormat class abstract final

The subset of Vulkan's VkFormat this loader maps to a TextureFormat.

Not one to one: an _SRGB value and its _UNORM twin carry the same bits and map to the same engine format, because this engine's shaders decode sRGB themselves and a sampler that also decoded would decode twice. See _engineFormat in ktx2_loader.dart, which says why at length.

Numbers are Khronos's, not this repository's: taken from github.com/KhronosGroup/KTX-Software/lib/src/vkformat_enum.h, the project that defines what a KTX2 file's vkFormat field means. Copied rather than derived, for the reason formats.dart states about the flutter_gpu mirror — a wrong number here compiles, runs, and renders wrong only for the value a scene happens to use.

Properties

hashCode int
The hash code for this object.
no setterinherited
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

astc4x4SfloatBlock → const int
astc4x4SrgbBlock → const int
astc4x4UNormBlock → const int
astc8x8SfloatBlock → const int
astc8x8SrgbBlock → const int
astc8x8UNormBlock → const int
b8g8r8a8Srgb → const int
b8g8r8a8UNorm → const int
bc1RgbaSrgbBlock → const int
bc1RgbaUNormBlock → const int
bc3SrgbBlock → const int
bc3UNormBlock → const int
bc5UNormBlock → const int
bc7SrgbBlock → const int
bc7UNormBlock → const int
etc2R8g8b8a8SrgbBlock → const int
etc2R8g8b8a8UNormBlock → const int
etc2R8g8b8SrgbBlock → const int
etc2R8g8b8UNormBlock → const int
r8g8b8a8Srgb → const int
r8g8b8a8UNorm → const int
r16g16b16a16Sfloat → const int
r32g32b32a32Sfloat → const int
r32Sfloat → const int
undefined → const int