You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. My shader takes as input two textures, both of the same dimensions:
A texture of GL_LUMINANCE type floating point format.
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.
The text was updated successfully, but these errors were encountered:
Hi. My shader takes as input two textures, both of the same dimensions:
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.
The text was updated successfully, but these errors were encountered: