Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: transform feedback using attribute locations

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2010

    transform feedback using attribute locations

    Hi all,

    I'm finding it very hard to find out whether or not it's possible to record vertex transformations using the TransformFeedback family of OpenGL calls using the generic attributes provided by the application. "Normally" you'd define glTransformFeedbackVaryings() with strings that match the ones in the shader. The thing is, I'm using CGFX and I really want to use the generic vertex attributes (ATTR0, ATTR1, etc...).

    When drawing, you'd use glEnableVertexAttribArray. Is there an analogue for reading?



  2. #2
    Senior Member OpenGL Lord
    Join Date
    May 2009
    Attributes are values passed into a vertex shader. Transform feedback records the outputs from a shader. Recording attributes makes zero sense; you already have these values because you gave them to the shader.

    So you're asking for how to capture vertex shader outputs.

Posting Permissions

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