cesium-native 0.43.0
Loading...
Searching...
No Matches
Ktx2TranscodeTargets.h
1#pragma once
2
3#include "CesiumGltf/Library.h"
4
5namespace CesiumGltf {
6
98
111 bool ETC1_RGB{};
113 bool ETC2_RGBA{};
115 bool BC1_RGB{};
117 bool BC3_RGBA{};
119 bool BC4_R{};
121 bool BC5_RG{};
123 bool BC7_RGBA{};
138};
139
147struct CESIUMGLTF_API Ktx2TranscodeTargets {
148
153 GpuCompressedPixelFormat ETC1S_R = GpuCompressedPixelFormat::NONE;
154
160 GpuCompressedPixelFormat ETC1S_RG = GpuCompressedPixelFormat::NONE;
161
166 GpuCompressedPixelFormat ETC1S_RGB = GpuCompressedPixelFormat::NONE;
167
172 GpuCompressedPixelFormat ETC1S_RGBA = GpuCompressedPixelFormat::NONE;
173
178 GpuCompressedPixelFormat UASTC_R = GpuCompressedPixelFormat::NONE;
179
184 GpuCompressedPixelFormat UASTC_RG = GpuCompressedPixelFormat::NONE;
185
190 GpuCompressedPixelFormat UASTC_RGB = GpuCompressedPixelFormat::NONE;
191
196 GpuCompressedPixelFormat UASTC_RGBA = GpuCompressedPixelFormat::NONE;
197
198 Ktx2TranscodeTargets() = default;
199
210 const SupportedGpuCompressedPixelFormats& supportedFormats,
211 bool preserveHighQuality);
212};
213
214} // namespace CesiumGltf
Classes for working with glTF models.
GpuCompressedPixelFormat
Supported GPU compressed pixel formats.
@ PVRTC2_4_RGBA
The data is a PVRTC2-compressed RGBA4444 texture.
@ BC5_RG
The data is a BC5-compressed RG88 texture.
@ BC3_RGBA
The data is a BC3-compressed RGBA5658 texture.
@ BC1_RGB
The data is a BC1-compressed RGB565 texture.
@ PVRTC2_4_RGB
The data is a PVRTC2-compressed RGB444 texture.
@ ASTC_4x4_RGBA
The data is a ASTC-compressed RGBA texture with a 4x4 block footprint.
@ PVRTC1_4_RGB
The data is a PVRTC1-compressed RGB444 texture.
@ BC4_R
The data is a BC4-compressed R8 texture.
@ ETC1_RGB
The data is an ETC1-compressed RGB888 texture.
@ BC7_RGBA
The data is a BC7-compressed RGBA8888 texture.
@ NONE
The data is uncompressed.
@ PVRTC1_4_RGBA
The data is a PVRTC1-compressed RGBA4444 texture.
@ ETC2_EAC_RG11
The data is a ETC2 RG11 EAC-compressed texture with two channels.
@ ETC2_RGBA
The data is an ETC2-compressed RGBA8888 texture.
@ ETC2_EAC_R11
The data is a ETC2 R11 EAC-compressed texture with a single channel.
For each possible input transmission format, this struct names the ideal target gpu-compressed pixel ...
Ktx2TranscodeTargets(const SupportedGpuCompressedPixelFormats &supportedFormats, bool preserveHighQuality)
Determine ideal transcode targets based on a list of supported gpu compressed formats.
Represents the status of support for all GpuCompressedPixelFormats on a client platform.