unsigned size = static_cast<const TextureCube *>(this)->size;
unsigned levels = static_cast<const TextureCube *>(this)->levels;
unsigned size = static_cast<const TextureCube *>(this)->size;
unsigned levels = static_cast<const TextureCube *>(this)->levels;