Browse Source

Mention performance optimizations in TransformFeedback.

pull/77/head
Vladimír Vondruš 12 years ago
parent
commit
2f42398d5e
  1. 12
      src/Magnum/TransformFeedback.h

12
src/Magnum/TransformFeedback.h

@ -43,6 +43,18 @@ namespace Implementation { struct TransformFeedbackState; }
/**
@brief Transform feedback
## Performance optimizations
The engine tracks currently bound transform feedback to avoid unnecessary calls
to @fn_gl{BindTransformFeedback}. Transform feedback limits and
implementation-defined values (such as @ref maxSeparateComponents()) are
cached, so repeated queries don't result in repeated @fn_gl{Get} calls.
If extension @extension{ARB,direct_state_access} (part of OpenGL 4.5) is
available, functions @ref attachBuffer() and @ref attachBuffers() use DSA to
avoid unnecessary call to @fn_gl{BindTransformFeedback}. See their respective
documentation for more information.
@see @ref PrimitiveQuery
@requires_gl40 Extension @extension{ARB,transform_feedback2}
@requires_gles30 Transform feedback is not available in OpenGL ES 2.0

Loading…
Cancel
Save