Skip to content

Commit

Permalink
Comment typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel committed Jul 3, 2023
1 parent 06a5a6f commit 4253555
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Source/astcenc_find_best_partitioning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static void count_partition_mismatch_bits(
for (unsigned int i = 0; i < active_count; i++)
{
mismatch_counts[i] = partition_mismatch2(bitmaps, bsd.coverage_bitmaps_2[i]);
assert(mismatch_counts[i] < 64);
assert(mismatch_counts[i] < BLOCK_MAX_KMEANS_TEXELS);
assert(mismatch_counts[i] < bsd.texel_count);
}
}
Expand All @@ -385,7 +385,7 @@ static void count_partition_mismatch_bits(
for (unsigned int i = 0; i < active_count; i++)
{
mismatch_counts[i] = partition_mismatch3(bitmaps, bsd.coverage_bitmaps_3[i]);
assert(mismatch_counts[i] < 64);
assert(mismatch_counts[i] < BLOCK_MAX_KMEANS_TEXELS);
assert(mismatch_counts[i] < bsd.texel_count);
}
}
Expand All @@ -394,7 +394,7 @@ static void count_partition_mismatch_bits(
for (unsigned int i = 0; i < active_count; i++)
{
mismatch_counts[i] = partition_mismatch4(bitmaps, bsd.coverage_bitmaps_4[i]);
assert(mismatch_counts[i] < 64);
assert(mismatch_counts[i] < BLOCK_MAX_KMEANS_TEXELS);
assert(mismatch_counts[i] < bsd.texel_count);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/astcenc_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static constexpr unsigned int BLOCK_MAX_PARTITIONS { 4 };
/** @brief The number of partitionings, per partition count, suported by the ASTC format. */
static constexpr unsigned int BLOCK_MAX_PARTITIONINGS { 1024 };

/** @brief The maximum number of weights used during partition selection for texel clustering. */
/** @brief The maximum number of texels used during partition selection for texel clustering. */
static constexpr uint8_t BLOCK_MAX_KMEANS_TEXELS { 64 };

/** @brief The maximum number of weights a block can support. */
Expand Down

0 comments on commit 4253555

Please sign in to comment.