Compression parameter rename: renaming m_xuastc_ldr_channel_weights[] to m_ldr_channel_weights[] (it's no longer XUASTC/ASTC specific, it's also used for XUBC7 and DDS creation)

This commit is contained in:
Richard Geldreich
2026-07-03 22:03:05 -04:00
parent b50b394845
commit fecef375e7
18 changed files with 55 additions and 46 deletions

View File

@@ -483,7 +483,7 @@ namespace basisu
if (!perceptual)
{
for (uint32_t i = 0; i < 4; i++)
bc7ctx.m_bc7e_params.m_weights[i] = comp.get_params().m_xuastc_ldr_channel_weights[i];
bc7ctx.m_bc7e_params.m_weights[i] = comp.get_params().m_ldr_channel_weights[i];
}
}
@@ -513,7 +513,7 @@ namespace basisu
const int bc7e_lvl = clamp<int>(params.m_bc7e_scalar_level, 0, 6);
const bool perceptual = comp.get_params().m_perceptual;
const uint32_t* pW = comp.get_params().m_xuastc_ldr_channel_weights;
const uint32_t* pW = comp.get_params().m_ldr_channel_weights;
debug_printf("DDS export: BC7 encoder=%s\n", using_bc7e ? "bc7e_scalar" : "bc7f");
debug_printf("DDS export: bc7f level=%d (%s), pack flags=0x%X%s\n",