Skip to content

Commit

Permalink
Merge branch 'fix-java-binding-function-name' into jni-add-glupload
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Nov 14, 2024
2 parents 5e15ad8 + bd199ff commit 2b75a6c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,14 +607,24 @@ public void testBindings() {
.toAbsolutePath()
.normalize();

// The purpose of this test is to check the bindings for the 'native'
// functions that only return a value. When the binding for one of
// these functions is not implemented properly, then trying to call
// it will cause an 'UnsatisfiedLinkError'.
// This does not cover all 'native' functions: Some of them can only
// sensibly be called in the context of the other tests.

KtxTexture2 texture = KtxTexture2.createFromNamedFile(testKtxFile.toString(),
KtxTextureCreateFlagBits.NO_FLAGS);

// Native getter methods from the 'KtxTexture2' class
texture.getOETF();
texture.getPremultipliedAlpha();
texture.needsTranscoding();
texture.getSupercompressionScheme();
texture.getVkFormat();

// Native getter methods from the 'KtxTexture' class
texture.isArray();
texture.isCubemap();
texture.isCompressed();
Expand Down

0 comments on commit 2b75a6c

Please sign in to comment.