mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
glBeginQuery/glEndQuery now accept GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN and GL_PRIMITIVES_GENERATED. The result comes from CPU-side accounting: every captured draw adds the primitives it assembles, clamped by the capture buffers' remaining capacity in whole primitives (a full buffer stops recording, which is exactly what PRIMITIVES_WRITTEN reports), with the captured-vertex cursor resetting on glBeginTransformFeedback. Draws without a geometry stage write exactly what they assemble, so this is precise for them (KHR-GL33.transform_feedback.query_vertex_* now pass); geometry amplification is not modelled yet and the query_geometry_* variants still fail.