WebGLRenderbuffer
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.
* Some parts of this feature may have varying levels of support.
WebGLRenderbuffer 接口是 WebGL API 的一部分,它提供了一个用于保存一个图像的缓存,并且可以用于渲染操作的源或者目标。
摘要
WebGLRenderbuffer
对象保存的内容不能被直接访问,因此这个对象没有提供任何用于操作其自身内容的方法和属性。当需要使用 WebGLRenderbuffer
对象的功能时,需要使用 WebGLRenderingContext
对象的以下方法:
示例
创建一个 render buffer 对象
js
var canvas = document.getElementById("canvas");
var gl = canvas.getContext("webgl");
var buffer = gl.createRenderbuffer();
规范
Specification |
---|
WebGL Specification # 5.7 |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
WebGLRenderbuffer | ||||||||||||
Available in workers |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.