21 return fmt::format(fmt::runtime(
RPT_(
"Unexpected SPZ header magic 0x{:X}")), header.magic);
23 if (header.version < min_version || header.version > max_version) {
24 return fmt::format(fmt::runtime(
RPT_(
"Unsupported SPZ version {}")), header.version);
27 return RPT_(
"Too many points");
30 if (header.sh_degree > 4) {
31 return fmt::format(fmt::runtime(
RPT_(
"Unsupported SH degree {}")), header.sh_degree);
34 if (header.fractional_bits >= 24) {
35 return fmt::format(fmt::runtime(
RPT_(
"Unsupported number of position fractional bits {}")),
36 header.fractional_bits);