BoyBaykiller / Ktx2.NET

KTX2 bindings for C#. With NuGet package
https://www.nuget.org/packages/Ktx2.NET
1 stars 0 forks source link

Request: Add some additional functions and features #1

Closed iMrShadow closed 3 weeks ago

iMrShadow commented 3 weeks ago

Hi! I am working on a texture converter, which extracts texture data from proprietary game files to DDS. However, some of the formats like ETC1, ETC2, ATC, ASTC, PVRTC etc. have to be stored in a KTX/KTX2 container and I would like to use this wrapper.

However, it doesn't support some functions equivalent to DirectXTexNet's ones which I use

It would be great to have some of these: WriteToMemory/WriteToFile LoadFromFile ComputePitch/Slice BitsPerPixel IsPremultipliedAlpha

KTX1 writer and loader would be great as well, but I understand this is primarily for KTX2 and Khronos has decided to deprecate version 1 (which unfortunately supports ATC compressed textures natively).

Thanks.

BoyBaykiller commented 3 weeks ago

Hi, I l should be able to add these:

But

iMrShadow commented 3 weeks ago

Thanks a lot!

BoyBaykiller commented 3 weeks ago

I've added the following functions in version1.0.2:

Let me know if everything works! There are also some other changes to the interface.

BoyBaykiller commented 3 weeks ago

@iMrShadow

iMrShadow commented 3 weeks ago

Hello! Sorry for the late reply. Thanks for the update, I will try it in the upcoming week or 2, since I have limited time atm. I am closing this issue since the features were added.

I will let you know if there are any issues