Back to Content

WebGL2RenderingContext: getTransformFeedbackVarying() method

files/en-us/web/api/webgl2renderingcontext/gettransformfeedbackvarying/index.md

latest810 B
Original Source

{{APIRef("WebGL")}}{{AvailableInWorkers}}

The WebGL2RenderingContext.getTransformFeedbackVarying() method of the WebGL 2 API returns information about varying variables from {{domxref("WebGLTransformFeedback")}} buffers.

Syntax

js-nolint
getTransformFeedbackVarying(program, index)

Parameters

  • program
    • : A {{domxref("WebGLProgram")}}.
  • index
    • : A {{domxref("WebGL_API/Types", "GLuint")}} specifying the index of the varying variable whose information to retrieve.

Return value

A {{domxref("WebGLActiveInfo")}} object.

Examples

js
activeInfo = gl.getTransformFeedbackVarying(program, 0);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("WebGLTransformFeedback")}}