14struct ImageDescription {
15 LLAPI ImageDescription();
16 LLAPI ImageDescription(
19 mce::TextureFormat format,
20 cg::ColorSpace colorSpace,
21 cg::ImageType imageType,
22 uint32 arraySizeOrDepth
24 LLAPI
explicit ImageDescription(
const mce::Image& image);
25 ImageDescription(
const ImageDescription&) =
default;
26 ImageDescription& operator=(
const ImageDescription&) =
default;
28 LLAPI
bool operator!=(
const ImageDescription& rhs)
const;
29 bool operator==(
const ImageDescription& rhs)
const {
return !(*
this != rhs); }
32 LLAPI
void setArraySize(uint32 size);
33 LLNDAPI uint32 getArraySize()
const;
34 LLNDAPI uint32 getDepth()
const;
35 LLNDAPI uint32 getSubimageSize()
const;
36 LLNDAPI uint64 getStorageSize()
const;
38 LLAPI
static uint32 getStrideFromFormat(mce::TextureFormat fmt);
42 mce::TextureFormat mTextureFormat;
43 cg::ColorSpace mColorSpace{cg::ColorSpace::Unknown};
44 cg::ImageType mImageType{cg::ImageType::Texture2D};
45 mce::AlphaUsage mAlphaUsage{mce::AlphaUsage::Unknown};
48 uint32 mArraySizeOrDepth{1};