Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement KTX2File #3

Merged
merged 3 commits into from
Oct 23, 2024
Merged

feat: Implement KTX2File #3

merged 3 commits into from
Oct 23, 2024

Conversation

okwasniewski
Copy link
Member

@okwasniewski okwasniewski commented Oct 21, 2024

Summary

This PR implements KTX2File class from Basis Universal.

KTX2File
- [x] BasisModule.KTX2File( new Uint8Array( buffer ) )
- [x] close();
- [x] delete();
- [x] ktx2File.isValid()
- [x] ktx2File.isUASTC()
- [x] BasisFormat.UASTC_4x4
- [x] BasisFormat.ETC1S
- [x] ktx2File.getWidth()
- [x] ktx2File.getHeight();
- [x] ktx2File.getLayers()
- [x] ktx2File.getLevels()
- [x] ktx2File.getFaces();
- [x] ktx2File.getHasAlpha();
- [x] ktx2File.getDFDFlags();
- [x] ktx2File.startTranscoding()
- [x] ktx2File.getImageLevelInfo( mip, layer, face );
- [x] ktx2File.getImageTranscodedSizeInBytes(); - [x] ktx2File.transcodeImage();`

Preview of file data:

CleanShot 2024-10-22 at 15 53 57@2x

Test plan

@okwasniewski okwasniewski changed the title [DRAFT] wip: implement ktx2 file feat: Implement KTX2File Oct 22, 2024
@okwasniewski okwasniewski requested review from hmallen99 and robik and removed request for hmallen99 and robik October 22, 2024 13:52
@okwasniewski
Copy link
Member Author

Free account on GitHub allows for one reviewer so Im going to tag you guys: @robik @hmallen99 @matthargett

cc: @thymikee

@okwasniewski okwasniewski merged commit 2d72a2b into main Oct 23, 2024
5 checks passed
@okwasniewski okwasniewski deleted the feat/ktx2-file branch October 23, 2024 12:52
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