mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-10-16 14:05:31 +00:00
adjusting comments for clarity
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user