Interface INode
interface INode {
alpha?: boolean;
cap?: string;
needsPowerOfTwo?: boolean;
no?: ILeaf | INode;
option?: string;
transcodeFormat?: TranscodeTarget | TranscodeTarget[];
yes?: ILeaf | INode;
}
alpha?: boolean;
cap?: string;
needsPowerOfTwo?: boolean;
no?: ILeaf | INode;
option?: string;
transcodeFormat?: TranscodeTarget | TranscodeTarget[];
yes?: ILeaf | INode;
}
Properties
Optionalalpha
alpha?: boolean
Checks if alpha is present in the texture
Optionalcap
cap?: string
The name of the capability to check. Can be one of the following: astc bptc s3tc pvrtc etc2 etc1
Optionalneeds Power Of Two
needsPowerOfTwo?: boolean
Checks that the texture is a power of two
Optionalno
The node to select if at least one check is not successful
Optionaloption
option?: string
The name of the option to check from the options object passed to the KTX2 decode function. IKTX2DecoderOptions
Optionaltranscode Format
Checks the currently selected transcoding format.
Optionalyes
The node to select if all checks are successful
Regular node of a decision tree
Each property (except for "yes" and "no"), if not empty, will be checked in order to determine the next node to select. If all checks are successful, the "yes" node will be selected, else the "no" node will be selected.