Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feeding multiple GPUImageRawDataInput objects as input to shader. #2231

Open
chetanskumar opened this issue Mar 15, 2016 · 0 comments
Open

Comments

@chetanskumar
Copy link

Hi. My shader takes as input two textures, both of the same dimensions:

  1. A texture of GL_LUMINANCE type floating point format.
  2. A texture of GL_UNSIGNED_BYTE type, BGRA format.

Its output is a GL_UNSIGNED_BYTE type BGRA format texture. My shader is written, but I am unsure of how to pass the two inputs. I have initialised two GPUImageRawDataInput objects with the necessary data, and then have added as target my filter to both the objects. Following the pattern described in RawDataTest, I have implemented the callback block to read data from GPUImageRawDataOutput.

I am calling processData on one of the rawDataInput objects. I'm getting a black image as result. Help on how to pass multiple GPUImageRawDataInput objects as input to the shader would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant