opengl es - Android: Attach SurfaceTexture to FrameBuffer -
i performing video effect requires dual pass rendering (the texture needs passed through multiple shader programs). attaching surfacetexture gl_texture_external_oes passed in constructor not seem solution, since displayed result rendered once.
one solution aware of first rendering can done framebuffer, , resulting texture can rendered gets displayed.
however, seems surfacetexture must attached gl_texture_external_oes texture, , not framebuffer. i'm not sure if there workaround around this, or if there different approach should take.
thank you.
surfacetexture receives buffer of graphics data , wraps "external" texture. if helps see source code, start in updateteximage()
. note name of class ("glconsumer") more accurate description of function "surfacetexture": consumes frames of graphic data , makes them available gles.
surfacetexture expected work formats opengl es doesn't "naturally" work with, notably yuv, uses external textures.
Comments
Post a Comment