title: Counting number of generated triangles
body: <p>I am using tessellation shaders to generate new triangles.I use <strong>layout(vertices = 3) out;</strong> mode in TCS and <strong>layout(triangles, equal_spacing)</strong> in the TES shader.So I want basically to count how many new triangles has been generated.</p>
  
  <p>I query that info like this:</p>
  
  <pre><code>     glBeginQuery(GL_PRIMITIVES_GENERATED,tessQuery);
  
      ///draw here///
  
       glEndQuery(GL_PRIMITIVES_GENERATED);
       GLuint numPrimitives = 0;
       glGetQueryObjectuiv(tessQuery, GL_QUERY_RESULT,&amp;numPrimitives); 
  </code></pre>
  
  <p>But what I am not sure is what the result means.Does <a href="https://www.opengl.org/sdk/docs/man/docbook4/xhtml/glBeginQuery.xml" rel="nofollow">GL_PRIMITIVES_GENERATED</a> means -triangles in my case , or quads when the quads are tessellated?Can the meaning of "primitive" here be a face (2 adjacent triangles)? </p>