WebGLActiveInfo: thuộc tính name

Baseline Widely available

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

Note: This feature is available in Web Workers.

Thuộc tính chỉ đọc WebGLActiveInfo.name đại diện cho tên của dữ liệu được yêu cầu được trả về bởi lệnh gọi các phương thức getActiveAttrib() hoặc getActiveUniform().

Ví dụ

js
const activeAttrib = gl.getActiveAttrib(program, index);
activeAttrib.name;

const activeUniform = gl.getActiveUniform(program, index);
activeUniform.name;

Thông số kỹ thuật

Specification
WebGL Specification
# DOM-WebGLActiveInfo-name

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

Xem thêm