cesium-native  0.41.0
CesiumGltf::Ktx2TranscodeTargets Struct Reference

For each possible input transmission format, this struct names the ideal target gpu-compressed pixel format to transcode to. More...

#include <CesiumGltf/Ktx2TranscodeTargets.h>

Public Member Functions

 Ktx2TranscodeTargets (const SupportedGpuCompressedPixelFormats &supportedFormats, bool preserveHighQuality)
 Determine ideal transcode targets based on a list of supported gpu compressed formats. More...
 

Public Attributes

GpuCompressedPixelFormat ETC1S_R = GpuCompressedPixelFormat::NONE
 The gpu pixel compression format to transcode Red ETC1S textures into. If NONE, it will be decompressed into raw pixels.
 
GpuCompressedPixelFormat ETC1S_RG = GpuCompressedPixelFormat::NONE
 The gpu pixel compression format to transcode Red-Green ETC1S textures into, if one exists. Otherwise it will be decompressed into raw pixels.
 
GpuCompressedPixelFormat ETC1S_RGB = GpuCompressedPixelFormat::NONE
 The gpu pixel compression format to transcode RGB ETC1S textures into. If NONE, it will be decompressed into raw pixels.
 
GpuCompressedPixelFormat ETC1S_RGBA = GpuCompressedPixelFormat::NONE
 The gpu pixel compression format to transcode RGBA ETC1S textures into. If NONE, it will be decompressed into raw pixels.
 
GpuCompressedPixelFormat UASTC_R = GpuCompressedPixelFormat::NONE
 The gpu pixel compression format to transcode Red UASTC textures into. If NONE, it will be decompressed into raw pixels.
 
GpuCompressedPixelFormat UASTC_RG = GpuCompressedPixelFormat::NONE
 The gpu pixel compression format to transcode Red-Green UASTC textures into. If NONE, it will be decompressed into raw pixels.
 
GpuCompressedPixelFormat UASTC_RGB = GpuCompressedPixelFormat::NONE
 The gpu pixel compression format to transcode RGB UASTC textures into. If NONE, it will be decompressed into raw pixels.
 
GpuCompressedPixelFormat UASTC_RGBA = GpuCompressedPixelFormat::NONE
 The gpu pixel compression format to transcode RGBA UASTC textures into. If NONE, it will be decompressed into raw pixels.
 

Detailed Description

For each possible input transmission format, this struct names the ideal target gpu-compressed pixel format to transcode to.

When built with the constructor, these targets can take into account platform-specific support for target formats as reported by the client.

Definition at line 62 of file Ktx2TranscodeTargets.h.

Constructor & Destructor Documentation

◆ Ktx2TranscodeTargets()

CesiumGltf::Ktx2TranscodeTargets::Ktx2TranscodeTargets ( const SupportedGpuCompressedPixelFormats supportedFormats,
bool  preserveHighQuality 
)

Determine ideal transcode targets based on a list of supported gpu compressed formats.

Parameters
supportedFormatsThe supported gpu compressed pixel formats.
preserveHighQualityWhether to preserve texture quality when transcoding KTXv2 textures. If this is true, the texture may be fully decompressed instead of picking a lossy target gpu compressed pixel format.

The documentation for this struct was generated from the following file: