cesium-native 0.43.0
Loading...
Searching...
No Matches
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.
 

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 147 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.

Member Data Documentation

◆ ETC1S_R

GpuCompressedPixelFormat CesiumGltf::Ktx2TranscodeTargets::ETC1S_R = GpuCompressedPixelFormat::NONE

The gpu pixel compression format to transcode Red ETC1S textures into. If NONE, it will be decompressed into raw pixels.

Definition at line 153 of file Ktx2TranscodeTargets.h.

◆ ETC1S_RG

GpuCompressedPixelFormat CesiumGltf::Ktx2TranscodeTargets::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.

Definition at line 160 of file Ktx2TranscodeTargets.h.

◆ ETC1S_RGB

GpuCompressedPixelFormat CesiumGltf::Ktx2TranscodeTargets::ETC1S_RGB = GpuCompressedPixelFormat::NONE

The gpu pixel compression format to transcode RGB ETC1S textures into. If NONE, it will be decompressed into raw pixels.

Definition at line 166 of file Ktx2TranscodeTargets.h.

◆ ETC1S_RGBA

GpuCompressedPixelFormat CesiumGltf::Ktx2TranscodeTargets::ETC1S_RGBA = GpuCompressedPixelFormat::NONE

The gpu pixel compression format to transcode RGBA ETC1S textures into. If NONE, it will be decompressed into raw pixels.

Definition at line 172 of file Ktx2TranscodeTargets.h.

◆ UASTC_R

GpuCompressedPixelFormat CesiumGltf::Ktx2TranscodeTargets::UASTC_R = GpuCompressedPixelFormat::NONE

The gpu pixel compression format to transcode Red UASTC textures into. If NONE, it will be decompressed into raw pixels.

Definition at line 178 of file Ktx2TranscodeTargets.h.

◆ UASTC_RG

GpuCompressedPixelFormat CesiumGltf::Ktx2TranscodeTargets::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.

Definition at line 184 of file Ktx2TranscodeTargets.h.

◆ UASTC_RGB

GpuCompressedPixelFormat CesiumGltf::Ktx2TranscodeTargets::UASTC_RGB = GpuCompressedPixelFormat::NONE

The gpu pixel compression format to transcode RGB UASTC textures into. If NONE, it will be decompressed into raw pixels.

Definition at line 190 of file Ktx2TranscodeTargets.h.

◆ UASTC_RGBA

GpuCompressedPixelFormat CesiumGltf::Ktx2TranscodeTargets::UASTC_RGBA = GpuCompressedPixelFormat::NONE

The gpu pixel compression format to transcode RGBA UASTC textures into. If NONE, it will be decompressed into raw pixels.

Definition at line 196 of file Ktx2TranscodeTargets.h.


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