external textures are no longer restricted to SAMPLER_EXTERNAL

OpenGLES allows this when GL_OES_EGL_image is present.
This commit is contained in:
Mathias Agopian
2025-01-07 09:50:57 -08:00
committed by Mathias Agopian
parent 7d271cea1d
commit ef6ef784c9
16 changed files with 135 additions and 51 deletions
@@ -138,6 +138,13 @@ Java_com_google_android_filament_Texture_nBuilderImportTexture(JNIEnv*, jclass,
builder->import((intptr_t)id);
}
extern "C"
JNIEXPORT void JNICALL
Java_com_google_android_filament_Texture_nBuilderExternal(JNIEnv*, jclass, jlong nativeBuilder) {
Texture::Builder *builder = (Texture::Builder *) nativeBuilder;
builder->external();
}
extern "C" JNIEXPORT jlong JNICALL
Java_com_google_android_filament_Texture_nBuilderBuild(JNIEnv*, jclass,
jlong nativeBuilder, jlong nativeEngine) {