WebGL2RenderingContext: phương thức getTransformFeedbackVarying()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2021.

Note: This feature is available in Web Workers.

Phương thức WebGL2RenderingContext.getTransformFeedbackVarying() của WebGL 2 API trả về thông tin về các biến varying từ các bộ đệm WebGLTransformFeedback.

Cú pháp

js
getTransformFeedbackVarying(program, index)

Tham số

program

Một WebGLProgram.

index

Một GLuint chỉ định chỉ mục của biến varying mà thông tin sẽ được truy xuất.

Giá trị trả về

Một đối tượng WebGLActiveInfo.

Ví dụ

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

Đặc tả kỹ thuật

Thông số kỹ thuật
WebGL 2.0 Specification
# 3.7.15

Tương thích trình duyệt

Xem thêm