WebGLActiveInfo: thuộc tính type

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.type đại diện cho loại 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.type;

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

Thông số kỹ thuật

Specification
WebGL Specification
# DOM-WebGLActiveInfo-type

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

Xem thêm