WebGL2RenderingContext: phương thức deleteSampler()
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.deleteSampler() của WebGL 2 API xóa một đối tượng WebGLSampler đã cho.
Cú pháp
js
deleteSampler(sampler)
Tham số
sampler-
Một đối tượng
WebGLSamplerđể xóa.
Giá trị trả về
None (undefined).
Ví dụ
gl phải là một WebGL2RenderingContext.
Đối tượng WebGLSampler không có sẵn trong WebGL 1.
js
const sampler = gl.createSampler();
// …
gl.deleteSampler(sampler);
Đặc tả kỹ thuật
| Specification |
|---|
| WebGL 2.0 Specification> # 3.7.13> |