web api interface
WebGLTransformFeedback
Available in workers
The WebGLTransformFeedback interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing. It allows to preserve the post-transform rendering state of an object and resubmit this data multiple times.
When working with WebGLTransformFeedback objects, the following methods of the WebGL2RenderingContext are useful:
createTransformFeedback()deleteTransformFeedback()isTransformFeedback()bindTransformFeedback()beginTransformFeedback()endTransformFeedback()pauseTransformFeedback()resumeTransformFeedback()transformFeedbackVaryings()getTransformFeedbackVarying()
Examples
Creating a WebGLTransformFeedback object
in this example, gl must be a WebGL2RenderingContext. WebGLTransformFeedback objects are not available in WebGL 1.
const transformFeedback = gl.createTransformFeedback();
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.