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 3 of 3

Thread: Transform Feedback & Interleaved

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2010
    Location
    France, Lyon
    Posts
    5

    Transform Feedback & Interleaved

    Hi there, i use transform feedback with double buffering to retrieve some informations after a process on my texture buffer object (TBO) with a vertex shader, i use GL_INTERLEAVED_ATTRIBS to have just one buffer. But i have a specific process where i have to retrieve the third attrib only of my TBO in the other TBO, must i use GL_SEPARATE_ATTRIBS (and a few TBOs) or is there a way to give an offset and a stride (in the same way as glVertexAttribPointer) in order to write the vertex shader out infos where i want ?
    Thank you in advance
    <<< Oxyde >>>

  2. #2
    Member Regular Contributor DmitryM's Avatar
    Join Date
    Mar 2009
    Location
    Toronto
    Posts
    435

    Re: Transform Feedback & Interleaved

    There is no stride setup for the output stream in TF-1. Maybe they added something into the next TF versions.

    What is the format of the target buffer?
    Obviously, there is no problem if it has just one attribute.

    You can try binding all other attributes of a target buffer as input & output, writing them pass-through (to themselves).

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2010
    Location
    France, Lyon
    Posts
    5

    Re: Transform Feedback & Interleaved

    No there are a few attributes. I want the fastest way to do this process so i think i have to use SEPARATE in order to avoid writing ouputs that i don't want to update, i think it will be faster.
    Thank you !
    <<< Oxyde >>>

Posting Permissions

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