DdsTextureFormat Enum
The DXGI_FORMAT of the surfaces DdsEncoder writes: uncompressed pixels, or blocks of 4×4 texels compressed with BC1 to BC7.
public enum DdsTextureFormatRemarks
The names are those of DXGI_FORMAT without their prefix. A format with fewer channels than the image, less precision, or no alpha follows the rules of DdsEncoder (DdsEncoder.AllowChannelReduction, DdsEncoder.AllowBitDepthReduction).
Fields
| Name | Value | Description |
|---|---|---|
R8G8B8A8Unorm | 0 | Four 8-bit channels, red first (DXGI_FORMAT_R8G8B8A8_UNORM, 28). |
R8G8B8A8UnormSrgb | 1 | Four 8-bit channels, red first, sRGB-encoded colors (DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, 29). |
B8G8R8A8Unorm | 2 | Four 8-bit channels, blue first (DXGI_FORMAT_B8G8R8A8_UNORM, 87). |
B8G8R8A8UnormSrgb | 3 | Four 8-bit channels, blue first, sRGB-encoded colors (DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, 91). |
R8Unorm | 4 | One 8-bit channel, read as gray (DXGI_FORMAT_R8_UNORM, 61). |
R8G8Unorm | 5 | Two 8-bit channels, red and green (DXGI_FORMAT_R8G8_UNORM, 49). |
R16Unorm | 6 | One 16-bit channel, read as gray (DXGI_FORMAT_R16_UNORM, 56). |
R16G16B16A16Unorm | 7 | Four 16-bit channels (DXGI_FORMAT_R16G16B16A16_UNORM, 11). |
R16G16B16A16Float | 8 | Four half-precision floating-point channels, linear light (DXGI_FORMAT_R16G16B16A16_FLOAT, 10). |
R32G32B32A32Float | 9 | Four single-precision floating-point channels, linear light (DXGI_FORMAT_R32G32B32A32_FLOAT, 2). |
Bc1Unorm | 10 | BC1 (DXT1): 5:6:5 colors with 1-bit alpha, 4 bits per texel (DXGI_FORMAT_BC1_UNORM, 71). |
Bc1UnormSrgb | 11 | BC1 with sRGB-encoded colors (DXGI_FORMAT_BC1_UNORM_SRGB, 72). |
Bc2Unorm | 12 | BC2 (DXT3): the colors of BC1 and 4-bit alpha, 8 bits per texel (DXGI_FORMAT_BC2_UNORM, 74). |
Bc2UnormSrgb | 13 | BC2 with sRGB-encoded colors (DXGI_FORMAT_BC2_UNORM_SRGB, 75). |
Bc3Unorm | 14 | BC3 (DXT5): the colors of BC1 and interpolated alpha, 8 bits per texel (DXGI_FORMAT_BC3_UNORM, 77). |
Bc3UnormSrgb | 15 | BC3 with sRGB-encoded colors (DXGI_FORMAT_BC3_UNORM_SRGB, 78). |
Bc4Unorm | 16 | BC4: one channel, read as gray, 4 bits per texel (DXGI_FORMAT_BC4_UNORM, 80). |
Bc4Snorm | 17 | BC4 of signed values in [-1, 1] (DXGI_FORMAT_BC4_SNORM, 81). |
Bc5Unorm | 18 | BC5: two channels, red and green, 8 bits per texel (DXGI_FORMAT_BC5_UNORM, 83), such as a normal map. |
Bc5Snorm | 19 | BC5 of signed values in [-1, 1] (DXGI_FORMAT_BC5_SNORM, 84). |
Bc6HUf16 | 20 | BC6H: unsigned half-precision floating-point colors, high dynamic range, 8 bits per texel (DXGI_FORMAT_BC6H_UF16, 95). |
Bc6HSf16 | 21 | BC6H: signed half-precision floating-point colors (DXGI_FORMAT_BC6H_SF16, 96). |
Bc7Unorm | 22 | BC7: 8-bit colors and alpha, 8 bits per texel (DXGI_FORMAT_BC7_UNORM, 98). |
Bc7UnormSrgb | 23 | BC7 with sRGB-encoded colors (DXGI_FORMAT_BC7_UNORM_SRGB, 99). |