Skip to content

feat(tex): add has_opaque_alpha for crunch#58

Draft
mklokocka wants to merge 4 commits into
Guekka:mainfrom
mklokocka:crunch_opaque_alpha
Draft

feat(tex): add has_opaque_alpha for crunch#58
mklokocka wants to merge 4 commits into
Guekka:mainfrom
mklokocka:crunch_opaque_alpha

Conversation

@mklokocka

Copy link
Copy Markdown
Collaborator

Add a has_opaque_alpha method for the CrunchTexture class. has_alpha built in functions does not account for actual alpha contents, just the validness of the alpha channel.

Use it in format selection.

@codecov

codecov Bot commented Nov 1, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 75.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 78.97%. Comparing base (025a891) to head (87a13fd).

Files with missing lines Patch % Lines
src/tex/crunch_texture.cpp 80.00% 3 Missing ⚠️
src/tex/optimize.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   78.91%   78.97%   +0.06%     
==========================================
  Files          41       41              
  Lines        1873     1888      +15     
==========================================
+ Hits         1478     1491      +13     
- Misses        395      397       +2     
Files with missing lines Coverage Δ
include/btu/tex/crunch_texture.hpp 100.00% <ø> (ø)
src/tex/optimize.cpp 58.70% <0.00%> (+0.37%) ⬆️
src/tex/crunch_texture.cpp 76.84% <80.00%> (+0.59%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 025a891...87a13fd. Read the comment docs.

@Guekka

Guekka commented Feb 4, 2025

Copy link
Copy Markdown
Owner

Hey @mklokocka , I hope you're good
Do you intend to resume work on this PR?

@Guekka
Guekka force-pushed the main branch 3 times, most recently from e920955 to 79dc734 Compare March 22, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants