Guekka / bethutil

Common utilities for working with bethesda assets (dds, nif, bsa, hkx...)
https://guekka.github.io/bethutil/
Mozilla Public License 2.0
4 stars 2 forks source link

Add support for Crunch as a texture processor #56

Closed mklokocka closed 2 months ago

mklokocka commented 3 months ago

WIP Crunch support.

mklokocka commented 2 months ago

Sorry for the delay

You also need to add crunch to config.cmake.in

I think it is already updated? find_dependency("crunch2").

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 65.92179% with 61 lines in your changes missing coverage. Please review.

Project coverage is 78.91%. Comparing base (846670c) to head (f722a07). Report is 12 commits behind head on dev.

Files with missing lines Patch % Lines
src/tex/optimize.cpp 29.54% 31 Missing :warning:
src/tex/crunch_texture.cpp 76.25% 19 Missing :warning:
src/tex/crunch_functions.cpp 82.50% 7 Missing :warning:
src/tex/error_code.cpp 0.00% 4 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/Guekka/bethutil/pull/56/graphs/tree.svg?width=650&height=150&src=pr&token=llth93S2Em&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar)](https://app.codecov.io/gh/Guekka/bethutil/pull/56?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar) ```diff @@ Coverage Diff @@ ## dev #56 +/- ## ======================================== + Coverage 0 78.91% +78.91% ======================================== Files 0 41 +41 Lines 0 1873 +1873 ======================================== + Hits 0 1478 +1478 - Misses 0 395 +395 ``` | [Files with missing lines](https://app.codecov.io/gh/Guekka/bethutil/pull/56?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar) | Coverage Δ | | |---|---|---| | [include/btu/tex/crunch\_texture.hpp](https://app.codecov.io/gh/Guekka/bethutil/pull/56?src=pr&el=tree&filepath=include%2Fbtu%2Ftex%2Fcrunch_texture.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar#diff-aW5jbHVkZS9idHUvdGV4L2NydW5jaF90ZXh0dXJlLmhwcA==) | `100.00% <100.00%> (ø)` | | | [src/tex/functions.cpp](https://app.codecov.io/gh/Guekka/bethutil/pull/56?src=pr&el=tree&filepath=src%2Ftex%2Ffunctions.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar#diff-c3JjL3RleC9mdW5jdGlvbnMuY3Bw) | `89.38% <100.00%> (ø)` | | | [src/tex/texture.cpp](https://app.codecov.io/gh/Guekka/bethutil/pull/56?src=pr&el=tree&filepath=src%2Ftex%2Ftexture.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar#diff-c3JjL3RleC90ZXh0dXJlLmNwcA==) | `85.00% <100.00%> (ø)` | | | [src/tex/error\_code.cpp](https://app.codecov.io/gh/Guekka/bethutil/pull/56?src=pr&el=tree&filepath=src%2Ftex%2Ferror_code.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar#diff-c3JjL3RleC9lcnJvcl9jb2RlLmNwcA==) | `3.33% <0.00%> (ø)` | | | [src/tex/crunch\_functions.cpp](https://app.codecov.io/gh/Guekka/bethutil/pull/56?src=pr&el=tree&filepath=src%2Ftex%2Fcrunch_functions.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar#diff-c3JjL3RleC9jcnVuY2hfZnVuY3Rpb25zLmNwcA==) | `82.50% <82.50%> (ø)` | | | [src/tex/crunch\_texture.cpp](https://app.codecov.io/gh/Guekka/bethutil/pull/56?src=pr&el=tree&filepath=src%2Ftex%2Fcrunch_texture.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar#diff-c3JjL3RleC9jcnVuY2hfdGV4dHVyZS5jcHA=) | `76.25% <76.25%> (ø)` | | | [src/tex/optimize.cpp](https://app.codecov.io/gh/Guekka/bethutil/pull/56?src=pr&el=tree&filepath=src%2Ftex%2Foptimize.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar#diff-c3JjL3RleC9vcHRpbWl6ZS5jcHA=) | `58.33% <29.54%> (ø)` | | ... and [34 files with indirect coverage changes](https://app.codecov.io/gh/Guekka/bethutil/pull/56/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/Guekka/bethutil/pull/56?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/Guekka/bethutil/pull/56?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar). Last update [846670c...f722a07](https://app.codecov.io/gh/Guekka/bethutil/pull/56?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Edgar).