adjusting comments for clarity

This commit is contained in:
Richard Geldreich
2026-02-12 20:44:17 -05:00
parent 9ed68b9889
commit 03d2057014
2 changed files with 3 additions and 2 deletions

View File

@@ -5011,7 +5011,8 @@ namespace basisu
// Valid XUASTC LDR weight grid DCT quality levels are 1-100.
if (basist::basis_tex_format_is_xuastc_ldr(mode) && (uastc_rdo_or_dct_quality != 0.0f))
{
if ((uastc_rdo_or_dct_quality >= (float)BASISU_XUASTC_QUALITY_MIN) && (uastc_rdo_or_dct_quality < (float)BASISU_XUASTC_QUALITY_MAX))
// TODO: change this so 100=no DCT to simplify the non-unified API, right now they must set 0=no DCT
if ((uastc_rdo_or_dct_quality >= (float)BASISU_XUASTC_QUALITY_MIN) && (uastc_rdo_or_dct_quality < (float)BASISU_XUASTC_QUALITY_MAX))
{
// Enable weight grid DCT usage, set quality level.
comp_params.m_xuastc_ldr_use_dct = true;

View File

@@ -522,7 +522,7 @@ namespace basisu
// Ideally call set_format_mode() above instead of directly manipulating the below fields. These individual parameters are for backwards API compatibility.
// - If m_uastc is false you get ETC1S (the default).
// - If m_uastc is true, and m_hdr is not true, and m_xuastc_or_astc_ldr_basis_tex_format==-1, we generate UASTC 4x4 LDR data (8bpp with or without RDO).
// - If m_uastc is true, and m_hdr is not true, and m_xuastc_or_astc_ldr_basis_tex_format!=-1, we generate XUASTC 4x4-12x12 or ASTC 4x4-12x12 LDR data.
// - If m_uastc is true, and m_hdr is not true, and m_xuastc_or_astc_ldr_basis_tex_format!=-1, we generate XUASTC 4x4-12x12 or ASTC 4x4-12x12 LDR data, controlled by m_xuastc_or_astc_ldr_basis_tex_format.
// - If m_uastc is true and m_hdr is true, we generate 4x4 or 6x6 HDR data, controlled by m_hdr_mode.
// True to generate UASTC .basis/.KTX2 file data, otherwise ETC1S.