Skip to main content

Module dfd

Module dfd 

Source
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.
BlockHeader
DFD block header, containing what type and version of block.
ChannelTypeQualifiers
Qualifiers modifying the channel type of a SampleInformation entry.
DataFormatFlags
Flags modifying the interpretation of color data in a Basic block.
SampleInformation
Information about each “sample” within an image.

Enums§

Block
DFD block, containing a header and a data blob.
BuildError
Error type for DFD generation and validation.