Some declarations in compressonator.h are not defined in Compressonator_xx.lib
bekorn opened this issue · comments
Hello,
I downloaded CompressonatorSDK_x64_4.3.206.exe and setup a project with include/compressonator.h and lib/VS2019/x64/Compressonator_MD.lib to run the examples/sdk_example1/SDK_example.cpp. Everything worked and I compressed ruby.dds into ruby.dds but BC7 👌.
I tried to follow the comment in the example
compressonator/examples/sdk_example1/sdk_example1.cpp
Lines 37 to 38 in 38081a0
Added this line to test if it will build auto * func_ptr = CMP_LoadTexture
It failed with the error main.cpp.obj : error LNK2019: unresolved external symbol CMP_LoadTexture referenced in function main
Did a quick test and only the functions CMP_Format2FourCC, CMP_IsCompressedFormat, CMP_IsFloatFormat
are defined in this block of declerations
compressonator/cmp_compressonatorlib/compressonator.h
Lines 982 to 997 in 38081a0
This seemed like an issue on your side, hence this report.
Additionally:
- Is there a utility in the SDK that can load various image formats besides dds (especially png/jpg/hdr)?
- How can I run CMP_ConvertTexture & CMP_ConvertMipTexture on the GPU? The SDK section of the documentation does not mention this.
Same issue with the missing symbols in the .lib.