Mesa (master): vbo: add a comment on vbo_draw_transform_feedback()

Brian Paul brianp at kemper.freedesktop.org
Thu Feb 8 17:31:20 UTC 2018


Module: Mesa
Branch: master
Commit: b9ff185e41e2d310f70182fca06a9140a79e07ad
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9ff185e41e2d310f70182fca06a9140a79e07ad

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Feb  7 16:12:35 2018 -0700

vbo: add a comment on vbo_draw_transform_feedback()

Reviewed-by: Mathias Fröhlich <mathias.froehlich at web.de>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>

---

 src/mesa/vbo/vbo_exec_array.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index 9ce0aa38dc..25abe09559 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -1416,6 +1416,14 @@ vbo_exec_MultiDrawElementsBaseVertex(GLenum mode,
 }
 
 
+/**
+ * Draw a GL primitive using a vertex count obtained from transform feedback.
+ * \param mode  the type of GL primitive to draw
+ * \param obj  the transform feedback object to use
+ * \param stream  index of the transform feedback stream from which to
+ *                get the primitive count.
+ * \param numInstances  number of instances to draw
+ */
 static void
 vbo_draw_transform_feedback(struct gl_context *ctx, GLenum mode,
                             struct gl_transform_feedback_object *obj,




More information about the mesa-commit mailing list