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

Thread: transform feedback + glDrawElementsInstanced (REVISITED)

  1. #1
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004

    transform feedback + glDrawElementsInstanced (REVISITED)

    For on-GPU culling and LOD of instance variation data provided to an instanced draw call (see aqnuep's GPU based dynamic geometry LOD for background) ...but without GPU->CPU->GPU synchronization...

    Are atomics still the simplest and most efficient method to effectively feedback GL_PRIMITIVES_GENERATED from a transform feedback run into the "primcount" parameter of DrawElementsInstanced draw calls (invoked via glDrawElementsIndirect) on NVidia GPUs? (Re: this thread) Or is there another?

    glDrawElementsTransformFeedbackStreamInstancedPrim Count() would work too (ala glDrawTransformFeedbackStreamInstanced), but I'm not holding my breath for that one.

    An alternative would be the ability to fetch query results directly into GPU buffer objects (assuming it all stayed on the GPU), instead of into CPU-side client pointers. In the same manor as VBOs vs. client arrays for vertex attribute and index arrays. However, no AMD_query_buffer_object support here yet.

    Last edited by Dark Photon; 02-09-2013 at 06:48 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