Ktx2TextureFormat Enum
The format of the texels Ktx2Encoder writes: uncompressed, or block-compressed with BCn, ETC2, EAC or ASTC.
public enum Ktx2TextureFormatRemarks
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
| Name | Value | Description |
|---|---|---|
R8 | 0 | One 8-bit channel (R8_UNORM or R8_SRGB), read as gray. |
R8G8 | 1 | Two 8-bit channels, red and green (R8G8_UNORM or R8G8_SRGB). |
R8G8B8A8 | 2 | Four 8-bit channels (R8G8B8A8_UNORM or R8G8B8A8_SRGB). |
R16 | 3 | One 16-bit channel (R16_UNORM), read as gray. |
R16G16B16A16 | 4 | Four 16-bit channels (R16G16B16A16_UNORM). |
R16G16B16A16Sfloat | 5 | Four half-precision floating-point channels (R16G16B16A16_SFLOAT), linear light. |
R32G32B32A32Sfloat | 6 | Four single-precision floating-point channels (R32G32B32A32_SFLOAT), linear light. |
Bc1Rgb | 7 | BC1 without alpha (BC1_RGB_UNORM_BLOCK or BC1_RGB_SRGB_BLOCK). |
Bc1Rgba | 8 | BC1 with 1-bit alpha (BC1_RGBA_UNORM_BLOCK or BC1_RGBA_SRGB_BLOCK). |
Bc2 | 9 | BC2: 4-bit alpha (BC2_UNORM_BLOCK or BC2_SRGB_BLOCK). |
Bc3 | 10 | BC3: interpolated alpha (BC3_UNORM_BLOCK or BC3_SRGB_BLOCK). |
Bc4Unorm | 11 | BC4: one channel (BC4_UNORM_BLOCK), read as gray. |
Bc4Snorm | 12 | BC4 of signed values in [-1, 1] (BC4_SNORM_BLOCK). |
Bc5Unorm | 13 | BC5: red and green (BC5_UNORM_BLOCK). |
Bc5Snorm | 14 | BC5 of signed values in [-1, 1] (BC5_SNORM_BLOCK). |
Bc6HUfloat | 15 | BC6H of unsigned half-precision floating-point colors (BC6H_UFLOAT_BLOCK). |
Bc6HSfloat | 16 | BC6H of signed half-precision floating-point colors (BC6H_SFLOAT_BLOCK). |
Bc7 | 17 | BC7 (BC7_UNORM_BLOCK or BC7_SRGB_BLOCK). |
Etc2Rgb | 18 | ETC2 colors without alpha (ETC2_R8G8B8_UNORM_BLOCK or ETC2_R8G8B8_SRGB_BLOCK). |
Etc2RgbA1 | 19 | ETC2 colors with punchthrough (1-bit) alpha (ETC2_R8G8B8A1_UNORM_BLOCK or ETC2_R8G8B8A1_SRGB_BLOCK). |
Etc2Rgba | 20 | ETC2 colors with an EAC alpha block (ETC2_R8G8B8A8_UNORM_BLOCK or ETC2_R8G8B8A8_SRGB_BLOCK). |
EacR11Unorm | 21 | One 11-bit channel (EAC_R11_UNORM_BLOCK), read as gray. |
EacR11Snorm | 22 | One signed 11-bit channel of values in [-1, 1] (EAC_R11_SNORM_BLOCK). |
EacR11G11Unorm | 23 | Two 11-bit channels, red and green (EAC_R11G11_UNORM_BLOCK). |
EacR11G11Snorm | 24 | Two signed 11-bit channels of values in [-1, 1] (EAC_R11G11_SNORM_BLOCK). |
Astc4x4 | 25 | ASTC LDR, blocks of 4×4 texels: 8 bits per texel (ASTC_4x4_UNORM_BLOCK or ASTC_4x4_SRGB_BLOCK). |
Astc5x4 | 26 | ASTC LDR, blocks of 5×4 texels: 6.40 bits per texel. |
Astc5x5 | 27 | ASTC LDR, blocks of 5×5 texels: 5.12 bits per texel. |
Astc6x5 | 28 | ASTC LDR, blocks of 6×5 texels: 4.27 bits per texel. |
Astc6x6 | 29 | ASTC LDR, blocks of 6×6 texels: 3.56 bits per texel. |
Astc8x5 | 30 | ASTC LDR, blocks of 8×5 texels: 3.20 bits per texel. |
Astc8x6 | 31 | ASTC LDR, blocks of 8×6 texels: 2.67 bits per texel. |
Astc8x8 | 32 | ASTC LDR, blocks of 8×8 texels: 2 bits per texel. |
Astc10x5 | 33 | ASTC LDR, blocks of 10×5 texels: 2.56 bits per texel. |
Astc10x6 | 34 | ASTC LDR, blocks of 10×6 texels: 2.13 bits per texel. |
Astc10x8 | 35 | ASTC LDR, blocks of 10×8 texels: 1.60 bits per texel. |
Astc10x10 | 36 | ASTC LDR, blocks of 10×10 texels: 1.28 bits per texel. |
Astc12x10 | 37 | ASTC LDR, blocks of 12×10 texels: 1.07 bits per texel. |
Astc12x12 | 38 | ASTC LDR, blocks of 12×12 texels: 0.89 bits per texel. |