3 #include "CesiumGltf/Ktx2TranscodeTargets.h"
4 #include "CesiumGltf/Library.h"
5 #include "CesiumUtility/SharedAsset.h"
53 int32_t bytesPerChannel = 1;
59 GpuCompressedPixelFormat compressedPixelFormat =
60 GpuCompressedPixelFormat::NONE;
114 int64_t sizeBytes = -1;
123 return this->sizeBytes >= 0 ? this->sizeBytes : this->pixelData.size();
An asset that is potentially shared between multiple objects, such as an image shared between multipl...
Classes for working with glTF models.
The byte range within a buffer where this mip exists.
size_t byteOffset
The byte index where this mip begins.
size_t byteSize
The size in bytes of this mip.
A 2D image asset, including its pixel data. The image may have mipmaps, and it may be encoded in a GP...
std::vector< ImageAssetMipPosition > mipPositions
The offset of each mip in the pixel data.
int64_t getSizeBytes() const
Gets the size of this asset, in bytes.
std::vector< std::byte > pixelData
The pixel data.