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
GLuintchỉ đị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
| Specification |
|---|
| WebGL 2.0 Specification> # 3.7.15> |