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

Thread: glDrawTransformFeedback() outputs only the first captured primitive

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member Newbie Asylum's Avatar
    Join Date
    Aug 2017

    glDrawTransformFeedback() outputs only the first captured primitive

    I would like to make a simple demo app using transform feedback. However when I try to render the captured results (points) it outputs only the first one (of the actual 16). The TF result is generated from a single vertex with a geometry shader. I render this result with another geometry shader which creates quads from points (I will be referring to this from now on).

    • a query object verifies that the TF indeed captured 16 primitives (points)
    • f I use glDrawArrays() instead, then the vertex shader receives and outputs all 16 vertices, but the geometry shader uses only the first (and outputs the same quad 16 times)
    • the geometry shader is pretty simple, and it works fine, so I don't think that's the issue

    Images from RenderDoc:


    Relevant code:

    What might cause this behavior?
    Last edited by Asylum; 09-26-2017 at 08:51 AM.

Tags for this Thread

Posting Permissions

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