3 #include "CesiumGltf/ImageAsset.h"
4 #include "CesiumGltfReader/Library.h"
6 #include <CesiumUtility/IntrusivePointer.h>
57 const gsl::span<const std::byte>& data,
69 static std::optional<std::string>
Contains methods for reading and manipulating images.
static ImageReaderResult readImage(const gsl::span< const std::byte > &data, const CesiumGltf::Ktx2TranscodeTargets &ktx2TranscodeTargets)
Reads an image from a buffer.
static std::optional< std::string > generateMipMaps(CesiumGltf::ImageAsset &image)
Generate mipmaps for this image.
Classes for reading glTF models.
The result of reading an image with ImageDecoder::readImage.
std::vector< std::string > errors
Error messages that occurred while trying to read the image.
CesiumUtility::IntrusivePointer< CesiumGltf::ImageAsset > pImage
The ImageAsset that was read.
std::vector< std::string > warnings
Warning messages that occurred while reading the image.
A 2D image asset, including its pixel data. The image may have mipmaps, and it may be encoded in a GP...
For each possible input transmission format, this struct names the ideal target gpu-compressed pixel ...