EGLImages with renderbuffer as sibling and texture as target sibling

I am trying to establish EGLImagewhere the original sibling is GL_RENDERBUFFER( EGLClientBufferspecified as an argument eglCreateImageKHR). In another context, I create GL_TEXTURE_2Dand designate it as a target affinity EGLImagewith glEGLImageTargetTexture2DOES. Unfortunately, the last call leads to a GL_INVALID_OPERATION. If both the source and target siblings GL_TEXTURE_2D, the setting works like a charm.

From my reading of the specification, this should be a valid operation. It is also possible that my smaller test case has another orthogonal problem. Although I doubt it, since the setup works fine when both the source and target siblings GL_TEXTURE_2D. However, if this was a problem (and such use EGLImagewas permissible), what could be a possible problem that could lead to GL_INVALID_OPERATION. Or am I just mistaken in my interpretation of the specification?

Associated Extensions:

http://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image.txt

http://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_image_base.txt

Explanations:

  • I check the availability of all the extensions in the specification ( EGL_KHR_image, EGL_KHR_image_base, EGL_KHR_gl_texture_2D_image, EGL_KHR_gl_renderbuffer_imageetc.).
  • , EGLImage , GL_RENDERBUFFER vs a GL_TEXTURE_2D . OES_EGL_image_external , renderbuffer. , , GL_INVALID_OPERATION renderbuffer. .
  • GL EGL .
+4
2

EGLImage , . alonorbach .

- EGLImage, GL_INVALID_OPERATION. , EGLImage (.. EGL_NO_IMAGE_KHR) , rendebuffer, ( GL_OES_EGL_image). , , . , . NVidia Tegra , Adreno 320.

, EGLImages Android? . , , , EGLImage, renderbuffer, GL_RGBA8_OES GL_OES_rgb8_rgba8 ( 2 glRenderbufferStorage). , , , - , .

EGLImage ( Android) EGLImage. , EGLImage EGL_NATIVE_BUFFER_ANDROID, EGL_ANDROID_image_native_buffer. , .

, , , , , , , EGLImage, . , EGLImage, . , EGLImage/TargetKind . - , . , , EGLImage, , . Android ( )

.

0

, . GL_INVALID_OPERATION , EGLImage.

http://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image.txt

GL , eglImageOES (, , eglImageOES), INVALID_OPERATION.

glFramebufferRenderbufferOES renderbuffer, eglCreateImageKHR? , , (, , ), , .

0

Source: https://habr.com/ru/post/1537605/


All Articles