glTransformFeedbackVaryings vs layout(stream = 0)

When I call glTransformFeedbackVaryings from C, I’m specifying the order of out variables within each recorded stream, and I’m also specifying which out variables belong to which streams. Correct?

In the shading language, using layout(stream=#) is an alternative way of telling GL which output variables belong to which stream. But, it doesn’t specify the ordering within the stream. Correct?

I feel like I’m confusing something because layout(stream=#) seems redundant if I need to call glTransformFeedbackVaryings anyway.

When I call glTransformFeedbackVaryings from C, I’m specifying the order of out variables within each recorded stream, and I’m also specifying which out variables belong to which streams.

No. glTransformFeedbackVaryings does not specify streams for particular variables. Streams are only specified by GLSL.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.