Ktx2TextureFormat Enum

The format of the texels Ktx2Encoder writes: uncompressed, or block-compressed with BCn, ETC2, EAC or ASTC.

public enum Ktx2TextureFormat

Remarks

The members name a family of VkFormat values: the transfer function of the image chooses between the _SRGB and the _UNORM member of a family that has both (an image labeled ColorTransferFunction.Linear is written _UNORM with a linear transfer function, any other image _SRGB). A format without an _SRGB variant is written _UNORM, and its data format descriptor carries the transfer function of the image.

Fields

NameValueDescription
R80One 8-bit channel (R8_UNORM or R8_SRGB), read as gray.
R8G81Two 8-bit channels, red and green (R8G8_UNORM or R8G8_SRGB).
R8G8B8A82Four 8-bit channels (R8G8B8A8_UNORM or R8G8B8A8_SRGB).
R163One 16-bit channel (R16_UNORM), read as gray.
R16G16B16A164Four 16-bit channels (R16G16B16A16_UNORM).
R16G16B16A16Sfloat5Four half-precision floating-point channels (R16G16B16A16_SFLOAT), linear light.
R32G32B32A32Sfloat6Four single-precision floating-point channels (R32G32B32A32_SFLOAT), linear light.
Bc1Rgb7BC1 without alpha (BC1_RGB_UNORM_BLOCK or BC1_RGB_SRGB_BLOCK).
Bc1Rgba8BC1 with 1-bit alpha (BC1_RGBA_UNORM_BLOCK or BC1_RGBA_SRGB_BLOCK).
Bc29BC2: 4-bit alpha (BC2_UNORM_BLOCK or BC2_SRGB_BLOCK).
Bc310BC3: interpolated alpha (BC3_UNORM_BLOCK or BC3_SRGB_BLOCK).
Bc4Unorm11BC4: one channel (BC4_UNORM_BLOCK), read as gray.
Bc4Snorm12BC4 of signed values in [-1, 1] (BC4_SNORM_BLOCK).
Bc5Unorm13BC5: red and green (BC5_UNORM_BLOCK).
Bc5Snorm14BC5 of signed values in [-1, 1] (BC5_SNORM_BLOCK).
Bc6HUfloat15BC6H of unsigned half-precision floating-point colors (BC6H_UFLOAT_BLOCK).
Bc6HSfloat16BC6H of signed half-precision floating-point colors (BC6H_SFLOAT_BLOCK).
Bc717BC7 (BC7_UNORM_BLOCK or BC7_SRGB_BLOCK).
Etc2Rgb18ETC2 colors without alpha (ETC2_R8G8B8_UNORM_BLOCK or ETC2_R8G8B8_SRGB_BLOCK).
Etc2RgbA119ETC2 colors with punchthrough (1-bit) alpha (ETC2_R8G8B8A1_UNORM_BLOCK or ETC2_R8G8B8A1_SRGB_BLOCK).
Etc2Rgba20ETC2 colors with an EAC alpha block (ETC2_R8G8B8A8_UNORM_BLOCK or ETC2_R8G8B8A8_SRGB_BLOCK).
EacR11Unorm21One 11-bit channel (EAC_R11_UNORM_BLOCK), read as gray.
EacR11Snorm22One signed 11-bit channel of values in [-1, 1] (EAC_R11_SNORM_BLOCK).
EacR11G11Unorm23Two 11-bit channels, red and green (EAC_R11G11_UNORM_BLOCK).
EacR11G11Snorm24Two signed 11-bit channels of values in [-1, 1] (EAC_R11G11_SNORM_BLOCK).
Astc4x425ASTC LDR, blocks of 4×4 texels: 8 bits per texel (ASTC_4x4_UNORM_BLOCK or ASTC_4x4_SRGB_BLOCK).
Astc5x426ASTC LDR, blocks of 5×4 texels: 6.40 bits per texel.
Astc5x527ASTC LDR, blocks of 5×5 texels: 5.12 bits per texel.
Astc6x528ASTC LDR, blocks of 6×5 texels: 4.27 bits per texel.
Astc6x629ASTC LDR, blocks of 6×6 texels: 3.56 bits per texel.
Astc8x530ASTC LDR, blocks of 8×5 texels: 3.20 bits per texel.
Astc8x631ASTC LDR, blocks of 8×6 texels: 2.67 bits per texel.
Astc8x832ASTC LDR, blocks of 8×8 texels: 2 bits per texel.
Astc10x533ASTC LDR, blocks of 10×5 texels: 2.56 bits per texel.
Astc10x634ASTC LDR, blocks of 10×6 texels: 2.13 bits per texel.
Astc10x835ASTC LDR, blocks of 10×8 texels: 1.60 bits per texel.
Astc10x1036ASTC LDR, blocks of 10×10 texels: 1.28 bits per texel.
Astc12x1037ASTC LDR, blocks of 12×10 texels: 1.07 bits per texel.
Astc12x1238ASTC LDR, blocks of 12×12 texels: 0.89 bits per texel.