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 DdsTextureFormat

Remarks

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

NameValueDescription
R8G8B8A8Unorm0Four 8-bit channels, red first (DXGI_FORMAT_R8G8B8A8_UNORM, 28).
R8G8B8A8UnormSrgb1Four 8-bit channels, red first, sRGB-encoded colors (DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, 29).
B8G8R8A8Unorm2Four 8-bit channels, blue first (DXGI_FORMAT_B8G8R8A8_UNORM, 87).
B8G8R8A8UnormSrgb3Four 8-bit channels, blue first, sRGB-encoded colors (DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, 91).
R8Unorm4One 8-bit channel, read as gray (DXGI_FORMAT_R8_UNORM, 61).
R8G8Unorm5Two 8-bit channels, red and green (DXGI_FORMAT_R8G8_UNORM, 49).
R16Unorm6One 16-bit channel, read as gray (DXGI_FORMAT_R16_UNORM, 56).
R16G16B16A16Unorm7Four 16-bit channels (DXGI_FORMAT_R16G16B16A16_UNORM, 11).
R16G16B16A16Float8Four half-precision floating-point channels, linear light (DXGI_FORMAT_R16G16B16A16_FLOAT, 10).
R32G32B32A32Float9Four single-precision floating-point channels, linear light (DXGI_FORMAT_R32G32B32A32_FLOAT, 2).
Bc1Unorm10BC1 (DXT1): 5:6:5 colors with 1-bit alpha, 4 bits per texel (DXGI_FORMAT_BC1_UNORM, 71).
Bc1UnormSrgb11BC1 with sRGB-encoded colors (DXGI_FORMAT_BC1_UNORM_SRGB, 72).
Bc2Unorm12BC2 (DXT3): the colors of BC1 and 4-bit alpha, 8 bits per texel (DXGI_FORMAT_BC2_UNORM, 74).
Bc2UnormSrgb13BC2 with sRGB-encoded colors (DXGI_FORMAT_BC2_UNORM_SRGB, 75).
Bc3Unorm14BC3 (DXT5): the colors of BC1 and interpolated alpha, 8 bits per texel (DXGI_FORMAT_BC3_UNORM, 77).
Bc3UnormSrgb15BC3 with sRGB-encoded colors (DXGI_FORMAT_BC3_UNORM_SRGB, 78).
Bc4Unorm16BC4: one channel, read as gray, 4 bits per texel (DXGI_FORMAT_BC4_UNORM, 80).
Bc4Snorm17BC4 of signed values in [-1, 1] (DXGI_FORMAT_BC4_SNORM, 81).
Bc5Unorm18BC5: two channels, red and green, 8 bits per texel (DXGI_FORMAT_BC5_UNORM, 83), such as a normal map.
Bc5Snorm19BC5 of signed values in [-1, 1] (DXGI_FORMAT_BC5_SNORM, 84).
Bc6HUf1620BC6H: unsigned half-precision floating-point colors, high dynamic range, 8 bits per texel (DXGI_FORMAT_BC6H_UF16, 95).
Bc6HSf1621BC6H: signed half-precision floating-point colors (DXGI_FORMAT_BC6H_SF16, 96).
Bc7Unorm22BC7: 8-bit colors and alpha, 8 bits per texel (DXGI_FORMAT_BC7_UNORM, 98).
Bc7UnormSrgb23BC7 with sRGB-encoded colors (DXGI_FORMAT_BC7_UNORM_SRGB, 99).