Results 1 to 4 of 4

Thread: TransformFeedback + GeometryShader: how to query amount of captured data?

  1. #1
    Senior Member Regular Contributor
    Join Date
    May 2016
    Posts
    477

    TransformFeedback + GeometryShader: how to query amount of captured data?

    hi, i'm currently using transformfeedback to capture some data from the geometryshader
    the geometryshader doesnt create each invocation the same amount of primitives (points)

    how can i query the amount of data that's been captured ?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    3,100
    Quote Originally Posted by john_connor View Post
    how can i query the amount of data that's been captured ?
    glBeginQuery(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN)

  3. #3
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,671
    More explicitly, you wrap your use of feedback in a query object. A GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN query will store the number of primitives generated by any feedback operation within the query's scope.

  4. #4
    Senior Member Regular Contributor
    Join Date
    May 2016
    Posts
    477
    ok, thanks, it works

Similar Threads

  1. Replies: 6
    Last Post: 04-27-2018, 07:02 AM
  2. Need to transfer a huge amount of data
    By norman in forum OpenCL
    Replies: 2
    Last Post: 02-22-2011, 05:07 PM
  3. Use glreadpixels to query data
    By billy in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 01-28-2005, 05:03 AM
  4. How to query the total amount of video memory?
    By 991060 in forum OpenGL: Advanced Coding
    Replies: 31
    Last Post: 01-16-2005, 12:09 PM
  5. Query Pixel data from texture
    By rahul.bahl in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 10-07-2003, 10:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean