Share handles for GLES textures?

66 views
Skip to first unread message

Mark Logan

unread,
Jul 3, 2015, 4:49:49 PM7/3/15
to anglep...@googlegroups.com
EGL_ANGLE_surface_d3d_texture_2d_share_handle makes it possible to get a D3D share handle for an EGL pbuffer surface created via ANGLE's EGL implementation.

Is it similarly possible to get a share handle for a texture created with GLES? e.g.

    GLuint tex;
    glGenTextures(1, &tex);
    glActiveTexture(0);
    glBindTexture(GL_TEXTURE_2D, tex);
    glTexImage2D(GL_TEXTURE_2D, 0, GL_RBGA, 800, 600, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr);

    // get share handle for underlying resource associated with `tex`
    ???

An EGL pbuffer won't do it for me, as I want to sample from the texture in a GLES shader.

Thanks!

Geoff Lang

unread,
Jul 3, 2015, 5:07:58 PM7/3/15
to ma...@artillery.com, anglep...@googlegroups.com
You can bind the pbuffer to a texture using eglBindTexImage if you need to sample from the pbuffer.

--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Logan

unread,
Jul 3, 2015, 5:22:16 PM7/3/15
to anglep...@googlegroups.com, ma...@artillery.com
Oh, that's great. For some reason I had gotten the impression that eglBindTexImage didn't have anything to do with GLES state.

-Mark
Reply all
Reply to author
Forward
0 new messages