Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: glTransformFeedbackVaryings vs layout(stream = 0)

  1. #1

    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.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,718

    Re: 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.
    No. glTransformFeedbackVaryings does not specify streams for particular variables. Streams are only specified by GLSL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •