20struct ImageDescription {
21 LLAPI ImageDescription();
22 LLAPI ImageDescription(
25 mce::TextureFormat format,
26 cg::ColorSpace colorSpace,
27 cg::ImageType imageType,
28 uint32 arraySizeOrDepth
30 LLAPI
explicit ImageDescription(
const mce::Image& image);
31 ImageDescription(
const ImageDescription&) =
default;
32 ImageDescription& operator=(
const ImageDescription&) =
default;
34 LLAPI
bool operator!=(
const ImageDescription& rhs)
const;
35 bool operator==(
const ImageDescription& rhs)
const {
return !(*
this != rhs); }
38 LLAPI
void setArraySize(uint32 size);
39 LLNDAPI uint32 getArraySize()
const;
40 LLNDAPI uint32 getDepth()
const;
41 LLNDAPI uint32 getSubimageSize()
const;
42 LLNDAPI uint64 getStorageSize()
const;
44 LLAPI
static uint32 getStrideFromFormat(mce::TextureFormat fmt);
48 mce::TextureFormat mTextureFormat;
49 cg::ColorSpace mColorSpace{cg::ColorSpace::Unknown};
50 cg::ImageType mImageType{cg::ImageType::Texture2D};
53 uint32 mArraySizeOrDepth{1};