W3cubDocs

/Web APIs

WebGLTransformFeedback

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.

WebGLObject WebGLTransformFeedback

When working with WebGLTransformFeedback objects, the following methods of the WebGL2RenderingContext are useful:

Examples

Creating a WebGLTransformFeedback object

in this example, gl must be a WebGL2RenderingContext. WebGLTransformFeedback objects are not available in WebGL 1.

js

const transformFeedback = gl.createTransformFeedback();

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
WebGLTransformFeedback 56 79 51 No 43 15 58 58 51 43 15 7.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WebGLTransformFeedback