3#include "CesiumGltf/Ktx2TranscodeTargets.h"
4#include "CesiumGltf/Library.h"
5#include "CesiumUtility/SharedAsset.h"
53 int32_t bytesPerChannel = 1;
60 GpuCompressedPixelFormat::NONE;
114 int64_t sizeBytes = -1;
128 return this->sizeBytes >= 0 ? this->sizeBytes
129 :
static_cast<int64_t
>(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.
GpuCompressedPixelFormat
Supported GPU compressed pixel formats.
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.
ImageAsset()=default
Constructs an empty image asset.
int64_t getSizeBytes() const
Gets the size of this asset, in bytes.
std::vector< std::byte > pixelData
The pixel data.