Expand description
Data Format Descriptor (DFD) for KTX2 textures.
Each ktx2 file contains an abstract definition of the data format of the texture data, called the Data Format Descriptor (DFD)). The specification for the DFD is a separate Khronos standard, and is not specific to KTX2.
Most of the DFD’s data is relatively esoteric, but it is required by the KTX2 specification,
and contains information like ColorModel, ColorPrimaries, and TransferFunction that
may be useful to applications.
§Structure
A DFD contains one or more Blocks. Each block has a BlockHeader, which describes what type of block it is,
and a data blob. The most common block type in KTX2 is the Basic block which contains information about
texture-like data formats.
Structs§
- Basic
- “Basic” DFD block, containing information about texture-like data.
- Block
Header - DFD block header, containing what type and version of block.
- Channel
Type Qualifiers - Qualifiers modifying the channel type of a
SampleInformationentry. - Data
Format Flags - Flags modifying the interpretation of color data in a
Basicblock. - Sample
Information - Information about each “sample” within an image.
Enums§
- Block
- DFD block, containing a header and a data blob.
- Build
Error - Error type for DFD generation and validation.