提交 d45fb0ff 编写于 作者: W wusongqing

updated docs

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 f19488de
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
- [ParticleAbility Module](js-apis-particleAbility.md) - [ParticleAbility Module](js-apis-particleAbility.md)
- [DataAbilityHelper Module](js-apis-dataAbilityHelper.md) - [DataAbilityHelper Module](js-apis-dataAbilityHelper.md)
- [DataUriUtils Module](js-apis-DataUriUtils.md) - [DataUriUtils Module](js-apis-DataUriUtils.md)
- [Bundle Module](js-apis-Bundle.md)
- [Context Module](js-apis-Context.md) - [Context Module](js-apis-Context.md)
- Event Notification - Event Notification
- [CommonEvent Module](js-apis-commonEvent.md) - [CommonEvent Module](js-apis-commonEvent.md)
...@@ -20,14 +21,16 @@ ...@@ -20,14 +21,16 @@
- Security - Security
- [User Authentication](js-apis-useriam-userauth.md) - [User Authentication](js-apis-useriam-userauth.md)
- Data Management - Data Management
- [File Management](js-apis-fileio.md)
- [Lightweight Storage](js-apis-data-storage.md) - [Lightweight Storage](js-apis-data-storage.md)
- [Distributed Data Management](js-apis-distributed-data.md) - [Distributed Data Management](js-apis-distributed-data.md)
- [Relational Database](js-apis-data-rdb.md) - [Relational Database](js-apis-data-rdb.md)
- [Result Set](js-apis-data-resultset.md) - [Result Set](js-apis-data-resultset.md)
- [DataAbilityPredicates](js-apis-data-ability.md) - [DataAbilityPredicates](js-apis-data-ability.md)
- File Management
- [File Management](js-apis-fileio.md)
- Account Management - Account Management
- [Distributed Account Management](js-apis-distributed-account.md) - [Distributed Account Management](js-apis-distributed-account.md)
- [Application Account Management](js-apis-appAccount.md)
- Telephony Service - Telephony Service
- [Call](js-apis-call.md) - [Call](js-apis-call.md)
- [SMS](js-apis-sms.md) - [SMS](js-apis-sms.md)
...@@ -61,6 +64,8 @@ ...@@ -61,6 +64,8 @@
- [HiAppEvent](js-apis-hiappevent.md) - [HiAppEvent](js-apis-hiappevent.md)
- [Performance Tracing](js-apis-bytrace.md) - [Performance Tracing](js-apis-bytrace.md)
- [Fault Logger](js-apis-faultLogger.md) - [Fault Logger](js-apis-faultLogger.md)
- [WebGL](js-apis-webgl.md)
- [WebGL2](js-apis-webgl2.md)
- Language Base Class Library - Language Base Class Library
- [Obtaining Process Information](js-apis-process.md) - [Obtaining Process Information](js-apis-process.md)
- [URL String Parsing](js-apis-url.md) - [URL String Parsing](js-apis-url.md)
......
# WebGL
> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:**
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
This module provides WebGL APIs that correspond to the OpenGL ES 2.0 feature set. For more information, see [WebGL™](https://www.khronos.org/registry/webgl/specs/latest/1.0/).
## Modules to Import
```
import webgl from 'ohos.webglnapi'
```
## System Capabilities
SystemCapability.Graphic.Graphic2D.WebGL
## Invoking Method
```
// Obtain the <canvas\> component instance.
const el = this.$refs.canvas
// Obtain the WebGL context from the <canvas\> component instance.
const gl = el.getContext('webgl');
// Call the WebGL API.
gl.clearColor(0.0, 0.0, 0.0, 1.0);
gl.flush();
```
## GLenum
| Name| Type|
| -------- | -------- |
| GLenum | number |
## GLboolean
| Name| Type|
| -------- | -------- |
| GLboolean | boolean |
## GLbitfield
| Name| Type|
| -------- | -------- |
| GLbitfield | number |
## GLbyte
| Name| Type|
| -------- | -------- |
| GLbyte | number |
## GLshort
| Name| Type|
| -------- | -------- |
| GLshort | number |
## GLint
| Name| Type|
| -------- | -------- |
| GLint | number |
## GLsizei
| Name| Type|
| -------- | -------- |
| GLsizei | number |
## GLintptr
| Name| Type|
| -------- | -------- |
| GLintptr | number |
## GLsizeiptr
| Name| Type|
| -------- | -------- |
| GLsizeiptr | number |
## GLubyte
| Name| Type|
| -------- | -------- |
| GLubyte | number |
## GLushort
| Name| Type|
| -------- | -------- |
| GLushort | number |
## GLuint
| Name| Type|
| -------- | -------- |
| GLuint | number |
## GLfloat
| Name| Type|
| -------- | -------- |
| GLfloat | number |
## GLclampf
| Name| Type|
| -------- | -------- |
| GLclampf | number |
## TexImageSource
| Name| Type|
| -------- | -------- |
| TexImageSource | ImageData |
## Float32List
| Name| Type|
| -------- | -------- |
| Float32List | array |
## Int32List
| Name| Type|
| -------- | -------- |
| Int32List | array |
## WebGLPowerPreference
| Name| Type|
| -------- | -------- |
| WebGLPowerPreference | string |
## webgl.WebGLContextAttributes
WebGLContextAttributes
| Name| Type| Mandatory|
| -------- | -------- | -------- |
| alpha | boolean | No|
| depth | boolean | No|
| stencil | boolean | No|
| antialias | boolean | No|
| premultipliedAlpha | boolean | No|
| preserveDrawingBuffer | boolean | No|
| powerPreference | WebGLPowerPreference | No|
| failIfMajorPerformanceCaveat | boolean | No|
| desynchronized | boolean | No|
## webgl.WebGLBuffer
WebGLBuffer
## webgl.WebGLFrameBuffer
WebGLFrameBuffer
## webgl.WebGLProgram
WebGLProgram
## webgl.WebGLRenderbuffer
WebGLRenderbuffer
## webgl.WebGLShader
WebGLShader
## webgl.WebGLTexture
WebGLTexture
## webgl.WebGLUniformLocation
WebGLUniformLocation
## webgl.WebGLActiveInfo
WebGLActiveInfo
| Name| Type| Mandatory|
| -------- | -------- | -------- |
| size | [GLint](#glint) | Yes|
| type | [GLenum](#glenum) | Yes|
| name | string | Yes|
## webgl.WebGLShaderPrecisionFormat
WebGLShaderPrecisionFormat
| Name| Type| Mandatory|
| -------- | -------- | -------- |
| rangeMin | [GLint](#glint) | Yes|
| rangeMax | [GLint](#glint) | Yes|
| precision | [GLint](#glint) | Yes|
## webgl.WebGLRenderingContextBase
WebGLRenderingContextBase
### Attributes
| Name| Type| Mandatory|
| -------- | -------- | -------- |
| DEPTH_BUFFER_BIT | [GLenum](#glenum) | Yes|
| STENCIL_BUFFER_BIT | [GLenum](#glenum) | Yes|
| COLOR_BUFFER_BIT | [GLenum](#glenum) | Yes|
| POINTS | [GLenum](#glenum) | Yes|
| LINES | [GLenum](#glenum) | Yes|
| LINE_LOOP | [GLenum](#glenum) | Yes|
| LINE_STRIP | [GLenum](#glenum) | Yes|
| TRIANGLES | [GLenum](#glenum) | Yes|
| TRIANGLE_STRIP | [GLenum](#glenum) | Yes|
| TRIANGLE_FAN | [GLenum](#glenum) | Yes|
| ZERO | [GLenum](#glenum) | Yes|
| ONE | [GLenum](#glenum) | Yes|
| SRC_COLOR | [GLenum](#glenum) | Yes|
| ONE_MINUS_SRC_COLOR | [GLenum](#glenum) | Yes|
| SRC_ALPHA | [GLenum](#glenum) | Yes|
| ONE_MINUS_SRC_ALPHA | [GLenum](#glenum) | Yes|
| DST_ALPHA | [GLenum](#glenum) | Yes|
| ONE_MINUS_DST_ALPHA | [GLenum](#glenum) | Yes|
| DST_COLOR | [GLenum](#glenum) | Yes|
| ONE_MINUS_DST_COLOR | [GLenum](#glenum) | Yes|
| SRC_ALPHA_SATURATE | [GLenum](#glenum) | Yes|
| FUNC_ADD | [GLenum](#glenum) | Yes|
| BLEND_EQUATION | [GLenum](#glenum) | Yes|
| BLEND_EQUATION_RGB | [GLenum](#glenum) | Yes|
| BLEND_EQUATION_ALPHA | [GLenum](#glenum) | Yes|
| FUNC_SUBTRACT | [GLenum](#glenum) | Yes|
| FUNC_REVERSE_SUBTRACT | [GLenum](#glenum) | Yes|
| BLEND_DST_RGB | [GLenum](#glenum) | Yes|
| BLEND_SRC_RGB | [GLenum](#glenum) | Yes|
| BLEND_DST_ALPHA | [GLenum](#glenum) | Yes|
| BLEND_SRC_ALPHA | [GLenum](#glenum) | Yes|
| CONSTANT_COLOR | [GLenum](#glenum) | Yes|
| ONE_MINUS_CONSTANT_COLOR | [GLenum](#glenum) | Yes|
| CONSTANT_ALPHA | [GLenum](#glenum) | Yes|
| ONE_MINUS_CONSTANT_ALPHA | [GLenum](#glenum) | Yes|
| BLEND_COLOR | [GLenum](#glenum) | Yes|
| ARRAY_BUFFER | [GLenum](#glenum) | Yes|
| ELEMENT_ARRAY_BUFFER | [GLenum](#glenum) | Yes|
| ARRAY_BUFFER_BINDING | [GLenum](#glenum) | Yes|
| ELEMENT_ARRAY_BUFFER_BINDING | [GLenum](#glenum) | Yes|
| STREAM_DRAW | [GLenum](#glenum) | Yes|
| STATIC_DRAW | [GLenum](#glenum) | Yes|
| DYNAMIC_DRAW | [GLenum](#glenum) | Yes|
| BUFFER_SIZE | [GLenum](#glenum) | Yes|
| BUFFER_USAGE | [GLenum](#glenum) | Yes|
| CURRENT_VERTEX_ATTRIB | [GLenum](#glenum) | Yes|
| FRONT | [GLenum](#glenum) | Yes|
| BACK | [GLenum](#glenum) | Yes|
| FRONT_AND_BACK | [GLenum](#glenum) | Yes|
| CULL_FACE | [GLenum](#glenum) | Yes|
| BLEND | [GLenum](#glenum) | Yes|
| DITHER | [GLenum](#glenum) | Yes|
| STENCIL_TEST | [GLenum](#glenum) | Yes|
| DEPTH_TEST | [GLenum](#glenum) | Yes|
| SCISSOR_TEST | [GLenum](#glenum) | Yes|
| POLYGON_OFFSET_FILL | [GLenum](#glenum) | Yes|
| SAMPLE_ALPHA_TO_COVERAGE | [GLenum](#glenum) | Yes|
| SAMPLE_COVERAGE | [GLenum](#glenum) | Yes|
| NO_ERROR | [GLenum](#glenum) | Yes|
| INVALID_ENUM | [GLenum](#glenum) | Yes|
| INVALID_VALUE | [GLenum](#glenum) | Yes|
| INVALID_OPERATION | [GLenum](#glenum) | Yes|
| OUT_OF_MEMORY | [GLenum](#glenum) | Yes|
| CW | [GLenum](#glenum) | Yes|
| CCW | [GLenum](#glenum) | Yes|
| ALIASED_POINT_SIZE_RANGE | [GLenum](#glenum) | Yes|
| ALIASED_LINE_WIDTH_RANGE | [GLenum](#glenum) | Yes|
| CULL_FACE_MODE | [GLenum](#glenum) | Yes|
| FRONT_FACE | [GLenum](#glenum) | Yes|
| DEPTH_RANGE | [GLenum](#glenum) | Yes|
| DEPTH_WRITEMASK | [GLenum](#glenum) | Yes|
| DEPTH_CLEAR_VALUE | [GLenum](#glenum) | Yes|
| DEPTH_FUNC | [GLenum](#glenum) | Yes|
| STENCIL_CLEAR_VALUE | [GLenum](#glenum) | Yes|
| STENCIL_FUNC | [GLenum](#glenum) | Yes|
| STENCIL_FAIL | [GLenum](#glenum) | Yes|
| STENCIL_PASS_DEPTH_FAIL | [GLenum](#glenum) | Yes|
| STENCIL_PASS_DEPTH_PASS | [GLenum](#glenum) | Yes|
| STENCIL_REF | [GLenum](#glenum) | Yes|
| STENCIL_VALUE_MASK | [GLenum](#glenum) | Yes|
| STENCIL_WRITEMASK | [GLenum](#glenum) | Yes|
| STENCIL_BACK_FUNC | [GLenum](#glenum) | Yes|
| STENCIL_BACK_FAIL | [GLenum](#glenum) | Yes|
| STENCIL_BACK_PASS_DEPTH_FAIL | [GLenum](#glenum) | Yes|
| STENCIL_BACK_PASS_DEPTH_PASS | [GLenum](#glenum) | Yes|
| STENCIL_BACK_REF | [GLenum](#glenum) | Yes|
| STENCIL_BACK_VALUE_MASK | [GLenum](#glenum) | Yes|
| STENCIL_BACK_WRITEMASK | [GLenum](#glenum) | Yes|
| VIEWPORT | [GLenum](#glenum) | Yes|
| SCISSOR_BOX | [GLenum](#glenum) | Yes|
| COLOR_CLEAR_VALUE | [GLenum](#glenum) | Yes|
| COLOR_WRITEMASK | [GLenum](#glenum) | Yes|
| UNPACK_ALIGNMENT | [GLenum](#glenum) | Yes|
| PACK_ALIGNMENT | [GLenum](#glenum) | Yes|
| MAX_TEXTURE_SIZE | [GLenum](#glenum) | Yes|
| MAX_VIEWPORT_DIMS | [GLenum](#glenum) | Yes|
| SUBPIXEL_BITS | [GLenum](#glenum) | Yes|
| RED_BITS | [GLenum](#glenum) | Yes|
| GREEN_BITS | [GLenum](#glenum) | Yes|
| BLUE_BITS | [GLenum](#glenum) | Yes|
| ALPHA_BITS | [GLenum](#glenum) | Yes|
| DEPTH_BITS | [GLenum](#glenum) | Yes|
| STENCIL_BITS | [GLenum](#glenum) | Yes|
| POLYGON_OFFSET_UNITS | [GLenum](#glenum) | Yes|
| POLYGON_OFFSET_FACTOR | [GLenum](#glenum) | Yes|
| TEXTURE_BINDING_2D | [GLenum](#glenum) | Yes|
| SAMPLE_BUFFERS | [GLenum](#glenum) | Yes|
| SAMPLES | [GLenum](#glenum) | Yes|
| SAMPLE_COVERAGE_VALUE | [GLenum](#glenum) | Yes|
| SAMPLE_COVERAGE_INVERT | [GLenum](#glenum) | Yes|
| COMPRESSED_TEXTURE_FORMATS | [GLenum](#glenum) | Yes|
| DONT_CARE | [GLenum](#glenum) | Yes|
| FASTEST | [GLenum](#glenum) | Yes|
| NICEST | [GLenum](#glenum) | Yes|
| GENERATE_MIPMAP_HINT | [GLenum](#glenum) | Yes|
| BYTE | [GLenum](#glenum) | Yes|
| UNSIGNED_BYTE | [GLenum](#glenum) | Yes|
| SHORT | [GLenum](#glenum) | Yes|
| UNSIGNED_SHORT | [GLenum](#glenum) | Yes|
| INT | [GLenum](#glenum) | Yes|
| UNSIGNED_INT | [GLenum](#glenum) | Yes|
| FLOAT | [GLenum](#glenum) | Yes|
| DEPTH_COMPONENT | [GLenum](#glenum) | Yes|
| ALPHA | [GLenum](#glenum) | Yes|
| RGB | [GLenum](#glenum) | Yes|
| RGBA | [GLenum](#glenum) | Yes|
| LUMINANCE | [GLenum](#glenum) | Yes|
| LUMINANCE_ALPHA | [GLenum](#glenum) | Yes|
| UNSIGNED_SHORT_4_4_4_4 | [GLenum](#glenum) | Yes|
| UNSIGNED_SHORT_5_5_5_1 | [GLenum](#glenum) | Yes|
| UNSIGNED_SHORT_5_6_5 | [GLenum](#glenum) | Yes|
| FRAGMENT_SHADER | [GLenum](#glenum) | Yes|
| VERTEX_SHADER | [GLenum](#glenum) | Yes|
| MAX_VERTEX_ATTRIBS | [GLenum](#glenum) | Yes|
| MAX_VERTEX_UNIFORM_VECTORS | [GLenum](#glenum) | Yes|
| MAX_VARYING_VECTORS | [GLenum](#glenum) | Yes|
| MAX_COMBINED_TEXTURE_IMAGE_UNITS | [GLenum](#glenum) | Yes|
| MAX_VERTEX_TEXTURE_IMAGE_UNITS | [GLenum](#glenum) | Yes|
| MAX_TEXTURE_IMAGE_UNITS | [GLenum](#glenum) | Yes|
| MAX_FRAGMENT_UNIFORM_VECTORS | [GLenum](#glenum) | Yes|
| SHADER_TYPE | [GLenum](#glenum) | Yes|
| DELETE_STATUS | [GLenum](#glenum) | Yes|
| LINK_STATUS | [GLenum](#glenum) | Yes|
| VALIDATE_STATUS | [GLenum](#glenum) | Yes|
| ATTACHED_SHADERS | [GLenum](#glenum) | Yes|
| ACTIVE_UNIFORMS | [GLenum](#glenum) | Yes|
| ACTIVE_ATTRIBUTES | [GLenum](#glenum) | Yes|
| SHADING_LANGUAGE_VERSION | [GLenum](#glenum) | Yes|
| CURRENT_PROGRAM | [GLenum](#glenum) | Yes|
| NEVER | [GLenum](#glenum) | Yes|
| LESS | [GLenum](#glenum) | Yes|
| EQUAL | [GLenum](#glenum) | Yes|
| LEQUAL | [GLenum](#glenum) | Yes|
| GREATER | [GLenum](#glenum) | Yes|
| NOTEQUAL | [GLenum](#glenum) | Yes|
| GEQUAL | [GLenum](#glenum) | Yes|
| ALWAYS | [GLenum](#glenum) | Yes|
| KEEP | [GLenum](#glenum) | Yes|
| REPLACE | [GLenum](#glenum) | Yes|
| INCR | [GLenum](#glenum) | Yes|
| DECR | [GLenum](#glenum) | Yes|
| INVERT | [GLenum](#glenum) | Yes|
| INCR_WRAP | [GLenum](#glenum) | Yes|
| DECR_WRAP | [GLenum](#glenum) | Yes|
| VENDOR | [GLenum](#glenum) | Yes|
| RENDERER | [GLenum](#glenum) | Yes|
| VERSION | [GLenum](#glenum) | Yes|
| NEAREST | [GLenum](#glenum) | Yes|
| LINEAR | [GLenum](#glenum) | Yes|
| NEAREST_MIPMAP_NEAREST | [GLenum](#glenum) | Yes|
| LINEAR_MIPMAP_NEAREST | [GLenum](#glenum) | Yes|
| NEAREST_MIPMAP_LINEAR | [GLenum](#glenum) | Yes|
| LINEAR_MIPMAP_LINEAR | [GLenum](#glenum) | Yes|
| TEXTURE_MAG_FILTER | [GLenum](#glenum) | Yes|
| TEXTURE_MIN_FILTER | [GLenum](#glenum) | Yes|
| TEXTURE_WRAP_S | [GLenum](#glenum) | Yes|
| TEXTURE_WRAP_T | [GLenum](#glenum) | Yes|
| TEXTURE_2D | [GLenum](#glenum) | Yes|
| TEXTURE | [GLenum](#glenum) | Yes|
| TEXTURE_CUBE_MAP | [GLenum](#glenum) | Yes|
| TEXTURE_BINDING_CUBE_MAP | [GLenum](#glenum) | Yes|
| TEXTURE_CUBE_MAP_POSITIVE_X | [GLenum](#glenum) | Yes|
| TEXTURE_CUBE_MAP_NEGATIVE_X | [GLenum](#glenum) | Yes|
| TEXTURE_CUBE_MAP_POSITIVE_Y | [GLenum](#glenum) | Yes|
| TEXTURE_CUBE_MAP_NEGATIVE_Y | [GLenum](#glenum) | Yes|
| TEXTURE_CUBE_MAP_POSITIVE_Z | [GLenum](#glenum) | Yes|
| TEXTURE_CUBE_MAP_NEGATIVE_Z | [GLenum](#glenum) | Yes|
| TEXTURE0 | [GLenum](#glenum) | Yes|
| TEXTURE1 | [GLenum](#glenum) | Yes|
| TEXTURE2 | [GLenum](#glenum) | Yes|
| TEXTURE3 | [GLenum](#glenum) | Yes|
| TEXTURE4 | [GLenum](#glenum) | Yes|
| TEXTURE5 | [GLenum](#glenum) | Yes|
| TEXTURE6 | [GLenum](#glenum) | Yes|
| TEXTURE7 | [GLenum](#glenum) | Yes|
| TEXTURE8 | [GLenum](#glenum) | Yes|
| TEXTURE9 | [GLenum](#glenum) | Yes|
| TEXTURE10 | [GLenum](#glenum) | Yes|
| TEXTURE11 | [GLenum](#glenum) | Yes|
| TEXTURE12 | [GLenum](#glenum) | Yes|
| TEXTURE13 | [GLenum](#glenum) | Yes|
| TEXTURE14 | [GLenum](#glenum) | Yes|
| TEXTURE15 | [GLenum](#glenum) | Yes|
| TEXTURE16 | [GLenum](#glenum) | Yes|
| TEXTURE17 | [GLenum](#glenum) | Yes|
| TEXTURE18 | [GLenum](#glenum) | Yes|
| TEXTURE19 | [GLenum](#glenum) | Yes|
| TEXTURE20 | [GLenum](#glenum) | Yes|
| TEXTURE21 | [GLenum](#glenum) | Yes|
| TEXTURE22 | [GLenum](#glenum) | Yes|
| TEXTURE23 | [GLenum](#glenum) | Yes|
| TEXTURE24 | [GLenum](#glenum) | Yes|
| TEXTURE25 | [GLenum](#glenum) | Yes|
| TEXTURE26 | [GLenum](#glenum) | Yes|
| TEXTURE27 | [GLenum](#glenum) | Yes|
| TEXTURE28 | [GLenum](#glenum) | Yes|
| TEXTURE29 | [GLenum](#glenum) | Yes|
| TEXTURE30 | [GLenum](#glenum) | Yes|
| TEXTURE31 | [GLenum](#glenum) | Yes|
| ACTIVE_TEXTURE | [GLenum](#glenum) | Yes|
| REPEAT | [GLenum](#glenum) | Yes|
| CLAMP_TO_EDGE | [GLenum](#glenum) | Yes|
| MIRRORED_REPEAT | [GLenum](#glenum) | Yes|
| FLOAT_VEC2 | [GLenum](#glenum) | Yes|
| FLOAT_VEC3 | [GLenum](#glenum) | Yes|
| FLOAT_VEC4 | [GLenum](#glenum) | Yes|
| INT_VEC2 | [GLenum](#glenum) | Yes|
| INT_VEC3 | [GLenum](#glenum) | Yes|
| INT_VEC4 | [GLenum](#glenum) | Yes|
| BOOL | [GLenum](#glenum) | Yes|
| BOOL_VEC2 | [GLenum](#glenum) | Yes|
| BOOL_VEC3 | [GLenum](#glenum) | Yes|
| BOOL_VEC4 | [GLenum](#glenum) | Yes|
| FLOAT_MAT2 | [GLenum](#glenum) | Yes|
| FLOAT_MAT3 | [GLenum](#glenum) | Yes|
| FLOAT_MAT4 | [GLenum](#glenum) | Yes|
| SAMPLER_2D | [GLenum](#glenum) | Yes|
| SAMPLER_CUBE | [GLenum](#glenum) | Yes|
| VERTEX_ATTRIB_ARRAY_ENABLED | [GLenum](#glenum) | Yes|
| VERTEX_ATTRIB_ARRAY_SIZE | [GLenum](#glenum) | Yes|
| VERTEX_ATTRIB_ARRAY_STRIDE | [GLenum](#glenum) | Yes|
| VERTEX_ATTRIB_ARRAY_TYPE | [GLenum](#glenum) | Yes|
| VERTEX_ATTRIB_ARRAY_NORMALIZED | [GLenum](#glenum) | Yes|
| VERTEX_ATTRIB_ARRAY_POINTER | [GLenum](#glenum) | Yes|
| VERTEX_ATTRIB_ARRAY_BUFFER_BINDING | [GLenum](#glenum) | Yes|
| IMPLEMENTATION_COLOR_READ_TYPE | [GLenum](#glenum) | Yes|
| IMPLEMENTATION_COLOR_READ_FORMAT | [GLenum](#glenum) | Yes|
| COMPILE_STATUS | [GLenum](#glenum) | Yes|
| LOW_FLOAT | [GLenum](#glenum) | Yes|
| MEDIUM_FLOAT | [GLenum](#glenum) | Yes|
| HIGH_FLOAT | [GLenum](#glenum) | Yes|
| LOW_INT | [GLenum](#glenum) | Yes|
| MEDIUM_INT | [GLenum](#glenum) | Yes|
| HIGH_INT | [GLenum](#glenum) | Yes|
| FRAMEBUFFER | [GLenum](#glenum) | Yes|
| RENDERBUFFER | [GLenum](#glenum) | Yes|
| RGBA4 | [GLenum](#glenum) | Yes|
| RGB5_A1 | [GLenum](#glenum) | Yes|
| RGB565 | [GLenum](#glenum) | Yes|
| DEPTH_COMPONENT16 | [GLenum](#glenum) | Yes|
| STENCIL_INDEX8 | [GLenum](#glenum) | Yes|
| DEPTH_STENCIL | [GLenum](#glenum) | Yes|
| RENDERBUFFER_WIDTH | [GLenum](#glenum) | Yes|
| RENDERBUFFER_HEIGHT | [GLenum](#glenum) | Yes|
| RENDERBUFFER_INTERNAL_FORMAT | [GLenum](#glenum) | Yes|
| RENDERBUFFER_RED_SIZE | [GLenum](#glenum) | Yes|
| RENDERBUFFER_GREEN_SIZE | [GLenum](#glenum) | Yes|
| RENDERBUFFER_BLUE_SIZE | [GLenum](#glenum) | Yes|
| RENDERBUFFER_ALPHA_SIZE | [GLenum](#glenum) | Yes|
| RENDERBUFFER_DEPTH_SIZE | [GLenum](#glenum) | Yes|
| RENDERBUFFER_STENCIL_SIZE | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_OBJECT_NAME | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE | [GLenum](#glenum) | Yes|
| COLOR_ATTACHMENT0 | [GLenum](#glenum) | Yes|
| DEPTH_ATTACHMENT | [GLenum](#glenum) | Yes|
| STENCIL_ATTACHMENT | [GLenum](#glenum) | Yes|
| DEPTH_STENCIL_ATTACHMENT | [GLenum](#glenum) | Yes|
| NONE | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_COMPLETE | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_INCOMPLETE_ATTACHMENT | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_INCOMPLETE_DIMENSIONS | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_UNSUPPORTED | [GLenum](#glenum) | Yes|
| FRAMEBUFFER_BINDING | [GLenum](#glenum) | Yes|
| RENDERBUFFER_BINDING | [GLenum](#glenum) | Yes|
| MAX_RENDERBUFFER_SIZE | [GLenum](#glenum) | Yes|
| INVALID_FRAMEBUFFER_OPERATION | [GLenum](#glenum) | Yes|
| UNPACK_FLIP_Y_WEBGL | [GLenum](#glenum) | Yes|
| UNPACK_PREMULTIPLY_ALPHA_WEBGL | [GLenum](#glenum) | Yes|
| CONTEXT_LOST_WEBGL | [GLenum](#glenum) | Yes|
| UNPACK_COLORSPACE_CONVERSION_WEBGL | [GLenum](#glenum) | Yes|
| BROWSER_DEFAULT_WEBGL | [GLenum](#glenum) | Yes|
| canvas | HTMLCanvasElement&nbsp;\|&nbsp;OffscreenCanvas | Yes|
| drawingBufferWidth | [GLsizei](#glsizei) | Yes|
| drawingBufferHeight | [GLsizei](#glsizei) | Yes|
### Methods
| Method| Return Value Type|
| -------- | -------- |
| getContextAttributes() | WebGLContextAttributes&nbsp;\|&nbsp;null |
| isContextLost() | boolean |
| getSupportedExtensions() | string[]&nbsp;\|&nbsp;null |
| getExtension(name:&nbsp;string) | any |
| activeTexture(texture:&nbsp;GLenum) | void |
| attachShader(program:&nbsp;WebGLProgram,&nbsp;shader:&nbsp;WebGLShader) | void |
| bindAttribLocation(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint,&nbsp;name:&nbsp;string) | void |
| bindBuffer(target:&nbsp;GLenum,&nbsp;buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | void |
| bindFramebuffer(target:&nbsp;GLenum,&nbsp;framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | void |
| bindRenderbuffer(target:&nbsp;GLenum,&nbsp;renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void |
| bindTexture(target:&nbsp;GLenum,&nbsp;texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | void |
| blendColor(red:&nbsp;GLclampf,&nbsp;green:&nbsp;GLclampf,&nbsp;blue:&nbsp;GLclampf,&nbsp;alpha:&nbsp;GLclampf) | void |
| blendEquation(mode:&nbsp;GLenum) | void |
| blendEquationSeparate(modeRGB:&nbsp;GLenum,&nbsp;modeAlpha:&nbsp;GLenum) | void |
| blendFunc(sfactor:&nbsp;GLenum,&nbsp;dfactor:&nbsp;GLenum) | void |
| blendFuncSeparate(srcRGB:&nbsp;GLenum,&nbsp;dstRGB:&nbsp;GLenum,&nbsp;srcAlpha:&nbsp;GLenum,&nbsp;dstAlpha:&nbsp;GLenum) | void |
| checkFramebufferStatus(target:&nbsp;GLenum) | GLenum |
| clear(mask:&nbsp;GLbitfield) | void |
| clearColor(red:&nbsp;GLclampf,&nbsp;green:&nbsp;GLclampf,&nbsp;blue:&nbsp;GLclampf,&nbsp;alpha:&nbsp;GLclampf) | void |
| clearDepth(depth:&nbsp;GLclampf) | void |
| clearStencil(s:&nbsp;GLint) | void |
| colorMask(red:&nbsp;GLboolean,&nbsp;green:&nbsp;GLboolean,&nbsp;blue:&nbsp;GLboolean,&nbsp;alpha:&nbsp;GLboolean) | void |
| compileShader(shader:&nbsp;WebGLShader) | void |
| copyTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint) | void |
| copyTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| createBuffer() | WebGLBuffer&nbsp;\|&nbsp;null |
| createFramebuffer() | WebGLFramebuffer&nbsp;\|&nbsp;null |
| createProgram() | WebGLProgram&nbsp;\|&nbsp;null |
| createRenderbuffer() | WebGLRenderbuffer&nbsp;\|&nbsp;null |
| createShader(type:&nbsp;GLenum) | WebGLShader&nbsp;\|&nbsp;null |
| createTexture() | WebGLTexture&nbsp;\|&nbsp;nullvoid |
| cullFace(mode:&nbsp;GLenum) | void |
| deleteBuffer(buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | void |
| deleteFramebuffer(framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | void |
| deleteProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | void |
| deleteRenderbuffer(renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void |
| deleteShader(shader:&nbsp;WebGLShader&nbsp;\|&nbsp;null) | void |
| deleteTexture(texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | void |
| depthFunc(func:&nbsp;GLenum) | void |
| depthMask(flag:&nbsp;GLboolean) | void |
| depthRange(zNear:&nbsp;GLclampf,&nbsp;zFar:&nbsp;GLclampf) | void |
| detachShader(program:&nbsp;WebGLProgram,&nbsp;shader:&nbsp;WebGLShader) | void |
| disable(cap:&nbsp;GLenum) | void |
| disableVertexAttribArray(index:&nbsp;GLuint) | void |
| drawArrays(mode:&nbsp;GLenum,&nbsp;first:&nbsp;GLint,&nbsp;count:&nbsp;GLsizei) | void |
| drawElements(mode:&nbsp;GLenum,&nbsp;count:&nbsp;GLsizei,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr) | void |
| enable(cap:&nbsp;GLenum) | void |
| enableVertexAttribArray(index:&nbsp;GLuint) | void |
| finish() | void |
| flush() | void |
| framebufferRenderbuffer(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;renderbuffertarget:&nbsp;GLenum,&nbsp;renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void |
| framebufferTexture2D(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;textarget:&nbsp;GLenum,&nbsp;texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null,&nbsp;level:&nbsp;GLint) | void |
| frontFace(mode:&nbsp;GLenum) | void |
| generateMipmap(target:&nbsp;GLenum) | void |
| getActiveAttrib(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null |
| getActiveUniform(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null |
| getAttachedShaders(program:&nbsp;WebGLProgram) | WebGLShader[]&nbsp;\|&nbsp;null |
| getAttribLocation(program:&nbsp;WebGLProgram,&nbsp;name:&nbsp;string) | GLint |
| getBufferParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| getParameter(pname:&nbsp;GLenum) | any |
| getError() | GLenum |
| getFramebufferAttachmentParameter(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| getProgramParameter(program:&nbsp;WebGLProgram,&nbsp;pname:&nbsp;GLenum) | any |
| getProgramInfoLog(program:&nbsp;WebGLProgram) | string&nbsp;\|&nbsp;null |
| getRenderbufferParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| getShaderParameter(shader:&nbsp;WebGLShader,&nbsp;pname:&nbsp;GLenum) | any |
| getShaderPrecisionFormat(shadertype:&nbsp;GLenum,&nbsp;precisiontype:&nbsp;GLenum) | WebGLShaderPrecisionFormat&nbsp;\|&nbsp;null |
| getShaderInfoLog(shader:&nbsp;WebGLShader) | string&nbsp;\|&nbsp;null |
| getShaderSource(shader:&nbsp;WebGLShader) | string&nbsp;\|&nbsp;null |
| getTexParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| getUniform(program:&nbsp;WebGLProgram,&nbsp;location:&nbsp;WebGLUniformLocation) | any |
| getUniformLocation(program:&nbsp;WebGLProgram,&nbsp;name:&nbsp;string) | WebGLUniformLocation&nbsp;\|&nbsp;null |
| getVertexAttrib(index:&nbsp;GLuint,&nbsp;pname:&nbsp;GLenum) | any |
| getVertexAttribOffset(index:&nbsp;GLuint,&nbsp;pname:&nbsp;GLenum) | GLintptr |
| hint(target:&nbsp;GLenum,&nbsp;mode:&nbsp;GLenum) | void |
| isBuffer(buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | GLboolean |
| isEnabled(cap:&nbsp;GLenum) | GLboolean |
| isFramebuffer(framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | GLboolean |
| isProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | GLboolean |
| isRenderbuffer(renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | GLboolean |
| isShader(shader:&nbsp;WebGLShader&nbsp;\|&nbsp;null) | GLboolean |
| isTexture(texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | GLboolean |
| lineWidth(width:&nbsp;GLfloat) | void |
| linkProgram(program:&nbsp;WebGLProgram) | void |
| pixelStorei(pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLint&nbsp;\|&nbsp;GLboolean) | void |
| polygonOffset(factor:&nbsp;GLfloat,&nbsp;units:&nbsp;GLfloat) | void |
| renderbufferStorage(target:&nbsp;GLenum,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| sampleCoverage(value:&nbsp;GLclampf,&nbsp;invert:&nbsp;GLboolean) | void |
| scissor(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| shaderSource(shader:&nbsp;WebGLShader,&nbsp;source:&nbsp;string) | void |
| stencilFunc(func:&nbsp;GLenum,&nbsp;ref:&nbsp;GLint,&nbsp;mask:&nbsp;GLuint) | void |
| stencilFuncSeparate(face:&nbsp;GLenum,&nbsp;func:&nbsp;GLenum,&nbsp;ref:&nbsp;GLint,&nbsp;mask:&nbsp;GLuint) | void |
| stencilMask(mask:&nbsp;GLuint) | void |
| stencilMaskSeparate(face:&nbsp;GLenum,&nbsp;mask:&nbsp;GLuint) | void |
| stencilOp(fail:&nbsp;GLenum,&nbsp;zfail:&nbsp;GLenum,&nbsp;zpass:&nbsp;GLenum) | void |
| stencilOpSeparate(face:&nbsp;GLenum,&nbsp;fail:&nbsp;GLenum,&nbsp;zfail:&nbsp;GLenum,&nbsp;zpass:&nbsp;GLenum) | void |
| texParameterf(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLfloat) | void |
| texParameteri(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLint) | void |
| uniform1f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat) | void |
| uniform2f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat) | void |
| uniform3f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat) | void |
| uniform4f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat,&nbsp;w:&nbsp;GLfloat) | void |
| uniform1i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint) | void |
| uniform2i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint) | void |
| uniform3i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;z:&nbsp;GLint) | void |
| uniform4i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;z:&nbsp;GLint,&nbsp;w:&nbsp;GLint) | void |
| useProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | void |
| validateProgram(program:&nbsp;WebGLProgram) | void |
| vertexAttrib1f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat) | void |
| vertexAttrib2f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat) | void |
| vertexAttrib3f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat) | void |
| vertexAttrib4f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat,&nbsp;w:&nbsp;GLfloat) | void |
| vertexAttrib1fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void |
| vertexAttrib2fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void |
| vertexAttrib3fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void |
| vertexAttrib4fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void |
| vertexAttribPointer(index:&nbsp;GLuint,&nbsp;size:&nbsp;GLint,&nbsp;type:&nbsp;GLenum,&nbsp;normalized:&nbsp;GLboolean,&nbsp;stride:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void |
| viewport(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
## webgl.WebGLRenderingContextOverloads
WebGLRenderingContextOverloads
| Method| Return Value Type|
| -------- | -------- |
| bufferData(target:&nbsp;GLenum,&nbsp;size:&nbsp;GLsizeiptr,&nbsp;usage:&nbsp;GLenum) | void |
| bufferData(target:&nbsp;GLenum,&nbsp;data:&nbsp;BufferSource&nbsp;\|&nbsp;null,&nbsp;usage:&nbsp;GLenum) | void |
| bufferSubData(target:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr,&nbsp;data:&nbsp;BufferSource) | void |
| compressedTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;data:&nbsp;ArrayBufferView) | void |
| compressedTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;data:&nbsp;ArrayBufferView) | void |
| readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| uniform1fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void |
| uniform2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void |
| uniform3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void |
| uniform4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void |
| uniform1iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void |
| uniform2iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void |
| uniform3iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void |
| uniform4iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void |
| uniformMatrix2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void |
| uniformMatrix3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void |
| uniformMatrix4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void |
# WebGL2
> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:**
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
This module provides WebGL APIs that correspond to the OpenGL ES 3.0 feature set. For more information, see [WebGL™](https://www.khronos.org/registry/webgl/specs/latest/2.0/).
## Modules to Import
```
import webgl from 'ohos.webglnapi'
```
## System Capabilities
SystemCapability.Graphic.Graphic2D.WebGL2
## Invoking Method
```
// Obtain the <canvas\> component instance.
const el = this.$refs.canvas
// Obtain the WebGL context from the <canvas\> component instance.
const gl = el.getContext('webgl');
const gl2 = el.getContext('webgl2');
// Call the WebGL API.
gl2.readBuffer(gl.COLOR_ATTACHMENT0)
```
## GLenum
| Name| Type|
| -------- | -------- |
| GLenum | number |
## Glint64
| Name| Type|
| -------- | -------- |
| Glint64 | number |
## Gluint64
| Name| Type|
| -------- | -------- |
| Gluint64 | number |
## Uint32List
| Name| Type|
| -------- | -------- |
| Uint32List | array |
## webgl.webGL2RenderingContexBase
WebGL2RenderingContexBase
### Attributes
| Name| Type| Mandatory|
| -------- | ------- | --------- |
| READ_BUFFER | [GLenum](#GLenum) | Yes|
| UNPACK_ROW_LENGTH | [GLenum](#GLenum) | Yes|
| UNPACK_SKIP_ROWS | [GLenum](#GLenum) | Yes|
| UNPACK_SKIP_PIXELS | [GLenum](#GLenum) | Yes|
| PACK_ROW_LENGTH | [GLenum](#GLenum) | Yes|
| PACK_SKIP_ROWS | [GLenum](#GLenum) | Yes|
| PACK_SKIP_PIXELS | [GLenum](#GLenum) | Yes|
| COLOR | [GLenum](#GLenum) | Yes|
| DEPTH | [GLenum](#GLenum) | Yes|
| STENCIL | [GLenum](#GLenum) | Yes|
| RED | [GLenum](#GLenum) | Yes|
| RGB8 | [GLenum](#GLenum) | Yes|
| RGBA8 | [GLenum](#GLenum) | Yes|
| RGB10_A2 | [GLenum](#GLenum) | Yes|
| TEXTURE_BINDING_3D | [GLenum](#GLenum) | Yes|
| UNPACK_SKIP_IMAGES | [GLenum](#GLenum) | Yes|
| UNPACK_IMAGE_HEIGHT | [GLenum](#GLenum) | Yes|
| TEXTURE_3D | [GLenum](#GLenum) | Yes|
| TEXTURE_WRAP_R | [GLenum](#GLenum) | Yes|
| MAX_3D_TEXTURE_SIZE | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_2_10_10_10_REV | [GLenum](#GLenum) | Yes|
| MAX_ELEMENTS_VERTICES | [GLenum](#GLenum) | Yes|
| MAX_ELEMENTS_INDICES | [GLenum](#GLenum) | Yes|
| TEXTURE_MIN_LOD | [GLenum](#GLenum) | Yes|
| TEXTURE_MAX_LOD | [GLenum](#GLenum) | Yes|
| TEXTURE_BASE_LEVEL | [GLenum](#GLenum) | Yes|
| TEXTURE_MAX_LEVEL | [GLenum](#GLenum) | Yes|
| MIN | [GLenum](#GLenum) | Yes|
| MAX | [GLenum](#GLenum) | Yes|
| DEPTH_COMPONENT24 | [GLenum](#GLenum) | Yes|
| MAX_TEXTURE_LOD_BIAS | [GLenum](#GLenum) | Yes|
| TEXTURE_COMPARE_MODE | [GLenum](#GLenum) | Yes|
| TEXTURE_COMPARE_FUNC | [GLenum](#GLenum) | Yes|
| CURRENT_QUERY | [GLenum](#GLenum) | Yes|
| QUERY_RESULT | [GLenum](#GLenum) | Yes|
| QUERY_RESULT_AVAILABLE | [GLenum](#GLenum) | Yes|
| STREAM_READ | [GLenum](#GLenum) | Yes|
| STREAM_COPY | [GLenum](#GLenum) | Yes|
| STATIC_READ | [GLenum](#GLenum) | Yes|
| STATIC_COPY | [GLenum](#GLenum) | Yes|
| DYNAMIC_READ | [GLenum](#GLenum) | Yes|
| DYNAMIC_COPY | [GLenum](#GLenum) | Yes|
| MAX_DRAW_BUFFERS | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER0 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER1 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER2 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER3 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER4 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER5 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER6 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER7 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER8 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER9 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER10 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER11 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER12 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER13 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER14 | [GLenum](#GLenum) | Yes|
| DRAW_BUFFER15 | [GLenum](#GLenum) | Yes|
| MAX_FRAGMENT_UNIFORM_COMPONENTS | [GLenum](#GLenum) | Yes|
| MAX_VERTEX_UNIFORM_COMPONENTS | [GLenum](#GLenum) | Yes|
| SAMPLER_3D | [GLenum](#GLenum) | Yes|
| SAMPLER_2D_SHADOW | [GLenum](#GLenum) | Yes|
| FRAGMENT_SHADER_DERIVATIVE_HINT | [GLenum](#GLenum) | Yes|
| PIXEL_PACK_BUFFER | [GLenum](#GLenum) | Yes|
| PIXEL_UNPACK_BUFFER | [GLenum](#GLenum) | Yes|
| PIXEL_PACK_BUFFER_BINDING | [GLenum](#GLenum) | Yes|
| PIXEL_UNPACK_BUFFER_BINDING | [GLenum](#GLenum) | Yes|
| FLOAT_MAT2x3 | [GLenum](#GLenum) | Yes|
| FLOAT_MAT2x4 | [GLenum](#GLenum) | Yes|
| FLOAT_MAT3x2 | [GLenum](#GLenum) | Yes|
| FLOAT_MAT3x4 | [GLenum](#GLenum) | Yes|
| FLOAT_MAT4x2 | [GLenum](#GLenum) | Yes|
| FLOAT_MAT4x3 | [GLenum](#GLenum) | Yes|
| SRGB | [GLenum](#GLenum) | Yes|
| SRGB8 | [GLenum](#GLenum) | Yes|
| SRGB8_ALPHA8 | [GLenum](#GLenum) | Yes|
| COMPARE_REF_TO_TEXTURE | [GLenum](#GLenum) | Yes|
| RGBA32F | [GLenum](#GLenum) | Yes|
| RGB32F | [GLenum](#GLenum) | Yes|
| RGBA16F | [GLenum](#GLenum) | Yes|
| RGB16F | [GLenum](#GLenum) | Yes|
| VERTEX_ATTRIB_ARRAY_INTEGER | [GLenum](#GLenum) | Yes|
| MAX_ARRAY_TEXTURE_LAYERS | [GLenum](#GLenum) | Yes|
| MIN_PROGRAM_TEXEL_OFFSET | [GLenum](#GLenum) | Yes|
| MAX_PROGRAM_TEXEL_OFFSET | [GLenum](#GLenum) | Yes|
| MAX_VARYING_COMPONENTS | [GLenum](#GLenum) | Yes|
| TEXTURE_2D_ARRAY | [GLenum](#GLenum) | Yes|
| TEXTURE_BINDING_2D_ARRAY | [GLenum](#GLenum) | Yes|
| R11F_G11F_B10F | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_10F_11F_11F_REV | [GLenum](#GLenum) | Yes|
| RGB9_E5 | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_5_9_9_9_REV | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_BUFFER_MODE | [GLenum](#GLenum) | Yes|
| MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_VARYINGS | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_BUFFER_START | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_BUFFER_SIZE | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN | [GLenum](#GLenum) | Yes|
| RASTERIZER_DISCARD | [GLenum](#GLenum) | Yes|
| MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS | [GLenum](#GLenum) | Yes|
| MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS | [GLenum](#GLenum) | Yes|
| INTERLEAVED_ATTRIBS | [GLenum](#GLenum) | Yes|
| SEPARATE_ATTRIBS | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_BUFFER | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_BUFFER_BINDING | [GLenum](#GLenum) | Yes|
| RGBA32UI | [GLenum](#GLenum) | Yes|
| RGB32UI | [GLenum](#GLenum) | Yes|
| RGBA16UI | [GLenum](#GLenum) | Yes|
| RGB16UI | [GLenum](#GLenum) | Yes|
| RGBA8UI | [GLenum](#GLenum) | Yes|
| RGB8UI | [GLenum](#GLenum) | Yes|
| RGBA32I | [GLenum](#GLenum) | Yes|
| RGB32I | [GLenum](#GLenum) | Yes|
| RGBA16I | [GLenum](#GLenum) | Yes|
| RGB16I | [GLenum](#GLenum) | Yes|
| RGBA8I | [GLenum](#GLenum) | Yes|
| RGB8I | [GLenum](#GLenum) | Yes|
| RED_INTEGER | [GLenum](#GLenum) | Yes|
| RGB_INTEGER | [GLenum](#GLenum) | Yes|
| RGBA_INTEGER | [GLenum](#GLenum) | Yes|
| SAMPLER_2D_ARRAY | [GLenum](#GLenum) | Yes|
| SAMPLER_2D_ARRAY_SHADOW | [GLenum](#GLenum) | Yes|
| SAMPLER_CUBE_SHADOW | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_VEC2 | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_VEC3 | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_VEC4 | [GLenum](#GLenum) | Yes|
| INT_SAMPLER_2D | [GLenum](#GLenum) | Yes|
| INT_SAMPLER_3D | [GLenum](#GLenum) | Yes|
| INT_SAMPLER_CUBE | [GLenum](#GLenum) | Yes|
| INT_SAMPLER_2D_ARRAY | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_SAMPLER_2D | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_SAMPLER_3D | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_SAMPLER_CUBE | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_SAMPLER_2D_ARRAY | [GLenum](#GLenum) | Yes|
| DEPTH_COMPONENT32F | [GLenum](#GLenum) | Yes|
| DEPTH32F_STENCIL8 | [GLenum](#GLenum) | Yes|
| FLOAT_32_UNSIGNED_INT_24_8_REV | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_RED_SIZE | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_GREEN_SIZE | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_BLUE_SIZE | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_DEFAULT | [GLenum](#GLenum) | Yes|
| UNSIGNED_INT_24_8 | [GLenum](#GLenum) | Yes|
| DEPTH24_STENCIL8 | [GLenum](#GLenum) | Yes|
| UNSIGNED_NORMALIZED | [GLenum](#GLenum) | Yes|
| DRAW_FRAMEBUFFER_BINDING | [GLenum](#GLenum) | Yes|
| READ_FRAMEBUFFER | [GLenum](#GLenum) | Yes|
| DRAW_FRAMEBUFFER | [GLenum](#GLenum) | Yes|
| READ_FRAMEBUFFER_BINDING | [GLenum](#GLenum) | Yes|
| RENDERBUFFER_SAMPLES | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER | [GLenum](#GLenum) | Yes|
| MAX_COLOR_ATTACHMENTS | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT1 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT2 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT3 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT4 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT5 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT6 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT7 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT8 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT9 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT10 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT11 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT12 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT13 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT14 | [GLenum](#GLenum) | Yes|
| COLOR_ATTACHMENT15 | [GLenum](#GLenum) | Yes|
| FRAMEBUFFER_INCOMPLETE_MULTISAMPLE | [GLenum](#GLenum) | Yes|
| MAX_SAMPLES | [GLenum](#GLenum) | Yes|
| HALF_FLOAT | [GLenum](#GLenum) | Yes|
| RG | [GLenum](#GLenum) | Yes|
| RG_INTEGER | [GLenum](#GLenum) | Yes|
| R8 | [GLenum](#GLenum) | Yes|
| RG8 | [GLenum](#GLenum) | Yes|
| R16F | [GLenum](#GLenum) | Yes|
| R32F | [GLenum](#GLenum) | Yes|
| RG16F | [GLenum](#GLenum) | Yes|
| RG32F | [GLenum](#GLenum) | Yes|
| R8I | [GLenum](#GLenum) | Yes|
| R8UI | [GLenum](#GLenum) | Yes|
| R16I | [GLenum](#GLenum) | Yes|
| R16UI | [GLenum](#GLenum) | Yes|
| R32I | [GLenum](#GLenum) | Yes|
| R32UI | [GLenum](#GLenum) | Yes|
| RG8I | [GLenum](#GLenum) | Yes|
| RG8UI | [GLenum](#GLenum) | Yes|
| RG16I | [GLenum](#GLenum) | Yes|
| RG16UI | [GLenum](#GLenum) | Yes|
| RG32I | [GLenum](#GLenum) | Yes|
| RG32UI | [GLenum](#GLenum) | Yes|
| VERTEX_ARRAY_BINDING | [GLenum](#GLenum) | Yes|
| R8_SNORM | [GLenum](#GLenum) | Yes|
| RG8_SNORM | [GLenum](#GLenum) | Yes|
| RGB8_SNORM | [GLenum](#GLenum) | Yes|
| SIGNED_NORMALIZED | [GLenum](#GLenum) | Yes|
| COPY_READ_BUFFER | [GLenum](#GLenum) | Yes|
| COPY_WRITE_BUFFER | [GLenum](#GLenum) | Yes|
| COPY_READ_BUFFER_BINDING | [GLenum](#GLenum) | Yes|
| COPY_WRITE_BUFFER_BINDING | [GLenum](#GLenum) | Yes|
| UNIFORM_BUFFER | [GLenum](#GLenum) | Yes|
| UNIFORM_BUFFER_BINDING | [GLenum](#GLenum) | Yes|
| UNIFORM_BUFFER_START | [GLenum](#GLenum) | Yes|
| UNIFORM_BUFFER_SIZE | [GLenum](#GLenum) | Yes|
| MAX_VERTEX_UNIFORM_BLOCKS | [GLenum](#GLenum) | Yes|
| MAX_FRAGMENT_UNIFORM_BLOCKS | [GLenum](#GLenum) | Yes|
| MAX_COMBINED_UNIFORM_BLOCKS | [GLenum](#GLenum) | Yes|
| MAX_UNIFORM_BUFFER_BINDINGS | [GLenum](#GLenum) | Yes|
| MAX_UNIFORM_BLOCK_SIZE | [GLenum](#GLenum) | Yes|
| MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS | [GLenum](#GLenum) | Yes|
| MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS | [GLenum](#GLenum) | Yes|
| UNIFORM_BUFFER_OFFSET_ALIGNMENT | [GLenum](#GLenum) | Yes|
| ACTIVE_UNIFORM_BLOCKS | [GLenum](#GLenum) | Yes|
| UNIFORM_TYPE | [GLenum](#GLenum) | Yes|
| UNIFORM_SIZE | [GLenum](#GLenum) | Yes|
| UNIFORM_BLOCK_INDEX | [GLenum](#GLenum) | Yes|
| UNIFORM_OFFSET | [GLenum](#GLenum) | Yes|
| UNIFORM_ARRAY_STRIDE | [GLenum](#GLenum) | Yes|
| UNIFORM_MATRIX_STRIDE | [GLenum](#GLenum) | Yes|
| UNIFORM_IS_ROW_MAJOR | [GLenum](#GLenum) | Yes|
| UNIFORM_BLOCK_BINDING | [GLenum](#GLenum) | Yes|
| UNIFORM_BLOCK_DATA_SIZE | [GLenum](#GLenum) | Yes|
| UNIFORM_BLOCK_ACTIVE_UNIFORMS | [GLenum](#GLenum) | Yes|
| UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES | [GLenum](#GLenum) | Yes|
| UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER | [GLenum](#GLenum) | Yes|
| UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER | [GLenum](#GLenum) | Yes|
| INVALID_INDEX | [GLenum](#GLenum) | Yes|
| MAX_VERTEX_OUTPUT_COMPONENTS | [GLenum](#GLenum) | Yes|
| MAX_FRAGMENT_INPUT_COMPONENTS | [GLenum](#GLenum) | Yes|
| MAX_SERVER_WAIT_TIMEOUT | [GLenum](#GLenum) | Yes|
| OBJECT_TYPE | [GLenum](#GLenum) | Yes|
| SYNC_CONDITION | [GLenum](#GLenum) | Yes|
| SYNC_STATUS | [GLenum](#GLenum) | Yes|
| SYNC_FLAGS | [GLenum](#GLenum) | Yes|
| SYNC_FENCE | [GLenum](#GLenum) | Yes|
| SYNC_GPU_COMMANDS_COMPLETE | [GLenum](#GLenum) | Yes|
| UNSIGNALED | [GLenum](#GLenum) | Yes|
| SIGNALED | [GLenum](#GLenum) | Yes|
| ALREADY_SIGNALED | [GLenum](#GLenum) | Yes|
| TIMEOUT_EXPIRED | [GLenum](#GLenum) | Yes|
| CONDITION_SATISFIED | [GLenum](#GLenum) | Yes|
| WAIT_FAILED | [GLenum](#GLenum) | Yes|
| SYNC_FLUSH_COMMANDS_BIT | [GLenum](#GLenum) | Yes|
| VERTEX_ATTRIB_ARRAY_DIVISOR | [GLenum](#GLenum) | Yes|
| ANY_SAMPLES_PASSED | [GLenum](#GLenum) | Yes|
| ANY_SAMPLES_PASSED_CONSERVATIVE | [GLenum](#GLenum) | Yes|
| SAMPLER_BINDING | [GLenum](#GLenum) | Yes|
| RGB10_A2UI | [GLenum](#GLenum) | Yes|
| INT_2_10_10_10_REV | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_PAUSED | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_ACTIVE | [GLenum](#GLenum) | Yes|
| TRANSFORM_FEEDBACK_BINDING | [GLenum](#GLenum) | Yes|
| TEXTURE_IMMUTABLE_FORMAT | [GLenum](#GLenum) | Yes|
| MAX_ELEMENT_INDEX | [GLenum](#GLenum) | Yes|
| TEXTURE_IMMUTABLE_LEVELS | [GLenum](#GLenum) | Yes|
| TIMEOUT_IGNORED | [GLenum](#GLenum) | Yes|
| MAX_CLIENT_WAIT_TIMEOUT_WEBGL | [GLenum](#GLenum) | Yes|
### Methods
| Method| Return Value Type|
| -------- | ---------- |
| copyBufferSubData(readTarget:&nbsp; GLenum,&nbsp; writeTarget:&nbsp; GLenum,&nbsp; readOffset:&nbsp; GLintptr,&nbsp; writeOffset:&nbsp; GLintptr,&nbsp; size:&nbsp; GLsizeiptr) | void |
| getBufferSubData(target:&nbsp; GLenum,&nbsp; srcByteOffset:&nbsp; GLintptr,&nbsp; dstBuffer:&nbsp; ArrayBufferView,&nbsp; dstOffset?:&nbsp; GLuint,&nbsp; length?:&nbsp; GLuint) | void |
| blitFramebuffer(srcX0:&nbsp; GLint,&nbsp; srcY0:&nbsp; GLint,&nbsp; srcX1:&nbsp; GLint,&nbsp; srcY1:&nbsp; GLint,&nbsp; dstX0:&nbsp; GLint,&nbsp; dstY0:&nbsp; GLint,&nbsp; dstX1:&nbsp; GLint,&nbsp; dstY1:&nbsp; GLint,&nbsp; mask:&nbsp; GLbitfield,&nbsp; filter:&nbsp; GLenum) | void |
| framebufferTextureLayer(target:&nbsp; GLenum,&nbsp; attachment:&nbsp; GLenum,&nbsp; texture:&nbsp; WebGLTexture&nbsp;\|&nbsp;null,&nbsp; level:&nbsp; GLint,&nbsp; layer:&nbsp; GLint) | void |
| invalidateFramebuffer(target:&nbsp; GLenum,&nbsp; attachments:&nbsp; GLenum[]) | void |
| invalidateSubFramebuffer(target:&nbsp; GLenum,&nbsp; attachments:&nbsp; GLenum[],&nbsp; x:&nbsp; GLint,&nbsp; y:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei) | void |
| readBuffer(src:&nbsp; GLenum) | void |
| getInternalformatParameter(target:&nbsp; GLenum,&nbsp; internalformat:&nbsp; GLenum,&nbsp; pname:&nbsp; GLenum) | any |
| renderbufferStorageMultisample(target:&nbsp; GLenum,&nbsp; samples:&nbsp; GLsizei,&nbsp; internalformat:&nbsp; GLenum,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei) | void |
| texStorage2D(target:&nbsp; GLenum,&nbsp; levels:&nbsp; GLsizei,&nbsp; internalformat:&nbsp; GLenum,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei) | void |
| texStorage3D(target:&nbsp; GLenum,&nbsp; levels:&nbsp; GLsizei,&nbsp; internalformat:&nbsp; GLenum,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei) | void |
| texImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; pboOffset:&nbsp; GLintptr) | void |
| texImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; source:&nbsp; TexImageSource) | void |
| texImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; srcData:&nbsp; ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; srcOffset:&nbsp; GLuint) | void |
| texSubImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; zoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; pboOffset:&nbsp; GLintptr) | void |
| texSubImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; zoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; source:&nbsp; TexImageSource) | void |
| texSubImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; zoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; srcData:&nbsp; ArrayBufferView&nbsp;\|&nbsp;null,&nbsp; srcOffset?:&nbsp; GLuint) | void |
| copyTexSubImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; zoffset:&nbsp; GLint,&nbsp; x:&nbsp; GLint,&nbsp; y:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei) | void |
| compressedTexImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLenum,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; imageSize:&nbsp; GLsizei,&nbsp; offset:&nbsp; GLintptr) | void |
| compressedTexImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLenum,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLengthOverride?:&nbsp; GLuint) | void |
| compressedTexSubImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; zoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; imageSize:&nbsp; GLsizei,&nbsp; offset:&nbsp; GLintptr) | void |
| compressedTexSubImage3D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; zoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; depth:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLengthOverride?:&nbsp; GLuint) | void |
| getFragDataLocation(program:&nbsp; WebGLProgram,&nbsp; name:&nbsp; string) | GLint |
| uniform1ui(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; v0:&nbsp; GLuint) | void |
| uniform2ui(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; v0:&nbsp; GLuint,&nbsp; v1:&nbsp; GLuint) | void |
| uniform3ui(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; v0:&nbsp; GLuint,&nbsp; v1:&nbsp; GLuint,&nbsp; v2:&nbsp; GLuint) | void |
| uniform4ui(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; v0:&nbsp; GLuint,&nbsp; v1:&nbsp; GLuint,&nbsp; v2:&nbsp; GLuint,&nbsp; v3:&nbsp; GLuint) | void |
| uniform1uiv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Uint32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform2uiv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Uint32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform3uiv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Uint32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform4uiv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Uint32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix3x2fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix4x2fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix2x3fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix4x3fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix2x4fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix3x4fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| vertexAttribI4i(index:&nbsp; GLuint,&nbsp; x:&nbsp; GLint,&nbsp; y:&nbsp; GLint,&nbsp; z:&nbsp; GLint,&nbsp; w:&nbsp; GLint) | void |
| vertexAttribI4iv(index:&nbsp; GLuint,&nbsp; values:&nbsp; Int32List) | void |
| vertexAttribI4ui(index:&nbsp; GLuint,&nbsp; x:&nbsp; GLuint,&nbsp; y:&nbsp; GLuint,&nbsp; z:&nbsp; GLuint,&nbsp; w:&nbsp; GLuint) | void |
| vertexAttribI4uiv(index:&nbsp; GLuint,&nbsp; values:&nbsp; Uint32List) | void |
| vertexAttribIPointer(index:&nbsp; GLuint,&nbsp; size:&nbsp; GLint,&nbsp; type:&nbsp; GLenum,&nbsp; stride:&nbsp; GLsizei,&nbsp; offset:&nbsp; GLintptr) | void |
| vertexAttribDivisor(index:&nbsp; GLuint,&nbsp; divisor:&nbsp; GLuint) | void |
| drawArraysInstanced(mode:&nbsp; GLenum,&nbsp; first:&nbsp; GLint,&nbsp; count:&nbsp; GLsizei,&nbsp; instanceCount:&nbsp; GLsizei) | void |
| drawElementsInstanced(mode:&nbsp; GLenum,&nbsp; count:&nbsp; GLsizei,&nbsp; type:&nbsp; GLenum,&nbsp; offset:&nbsp; GLintptr,&nbsp; instanceCount:&nbsp; GLsizei) | void |
| drawRangeElements(mode:&nbsp; GLenum,&nbsp; start:&nbsp; GLuint,&nbsp; end:&nbsp; GLuint,&nbsp; count:&nbsp; GLsizei,&nbsp; type:&nbsp; GLenum,&nbsp; offset:&nbsp; GLintptr) | void |
| drawBuffers(buffers:&nbsp; GLenum[]) | void |
| clearBufferfv(buffer:&nbsp; GLenum,&nbsp; drawbuffer:&nbsp; GLint,&nbsp; values:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint) | void |
| clearBufferiv(buffer:&nbsp; GLenum,&nbsp; drawbuffer:&nbsp; GLint,&nbsp; values:&nbsp; Int32List,&nbsp; srcOffset?:&nbsp; GLuint) | void |
| clearBufferuiv(buffer:&nbsp; GLenum,&nbsp; drawbuffer:&nbsp; GLint,&nbsp; values:&nbsp; Uint32List,&nbsp; srcOffset?:&nbsp; GLuint) | void |
| clearBufferfi(buffer:&nbsp; GLenum,&nbsp; drawbuffer:&nbsp; GLint,&nbsp; depth:&nbsp; GLfloat,&nbsp; stencil:&nbsp; GLint) | void |
| createQuery() | WebGLQuery&nbsp;\|&nbsp;null |
| deleteQuery(query:&nbsp; WebGLQuery&nbsp;\|&nbsp;null) | void |
| isQuery(query:&nbsp; WebGLQuery&nbsp;\|&nbsp;null) | GLboolean |
| beginQuery(target:&nbsp; GLenum,&nbsp; query:&nbsp; WebGLQuery) | void |
| endQuery(target:&nbsp; GLenum) | void |
| getQuery(target:&nbsp; GLenum,&nbsp; pname:&nbsp; GLenum) | WebGLQuery&nbsp;\|&nbsp;null |
| getQueryParameter(query:&nbsp; WebGLQuery,&nbsp; pname:&nbsp; GLenum) | any |
| createSampler() | WebGLSampler&nbsp;\|&nbsp;null |
| deleteSampler(sampler:&nbsp; WebGLSampler&nbsp;\|&nbsp;null) | void |
| isSampler(sampler:&nbsp; WebGLSampler&nbsp;\|&nbsp;null) | GLboolean |
| bindSampler(unit:&nbsp; GLuint,&nbsp; sampler:&nbsp; WebGLSampler&nbsp;\|&nbsp;null) | void |
| samplerParameteri(sampler:&nbsp; WebGLSampler,&nbsp; pname:&nbsp; GLenum,&nbsp; param:&nbsp; GLint) | void |
| samplerParameterf(sampler:&nbsp; WebGLSampler,&nbsp; pname:&nbsp; GLenum,&nbsp; param:&nbsp; GLfloat) | void |
| getSamplerParameter(sampler:&nbsp; WebGLSampler,&nbsp; pname:&nbsp; GLenum) | any |
| fenceSync(condition:&nbsp; GLenum,&nbsp; flags:&nbsp; GLbitfield) | WebGLSync&nbsp;\|&nbsp;null |
| isSync(sync:&nbsp; WebGLSync&nbsp;\|&nbsp;null) | GLboolean |
| deleteSync(sync:&nbsp; WebGLSync&nbsp;\|&nbsp;null) | void |
| clientWaitSync(sync:&nbsp; WebGLSync,&nbsp; flags:&nbsp; GLbitfield,&nbsp; timeout:&nbsp; GLuint64) | GLenum |
| waitSync(sync:&nbsp; WebGLSync,&nbsp; flags:&nbsp; GLbitfield,&nbsp; timeout:&nbsp; GLint64) | void |
| getSyncParameter(sync:&nbsp; WebGLSync,&nbsp; pname:&nbsp; GLenum) | any |
| createTransformFeedback() | WebGLTransformFeedback&nbsp;\|&nbsp;null |
| deleteTransformFeedback(tf:&nbsp; WebGLTransformFeedback&nbsp;\|&nbsp;null) | void |
| isTransformFeedback(tf:&nbsp; WebGLTransformFeedback&nbsp;\|&nbsp;null) | GLboolean |
| bindTransformFeedback(target:&nbsp; GLenum,&nbsp; tf:&nbsp; WebGLTransformFeedback&nbsp;\|&nbsp;null) | void |
| beginTransformFeedback(primitiveMode:&nbsp; GLenum) | void |
| endTransformFeedback() | void |
| transformFeedbackVaryings(program:&nbsp; WebGLProgram,&nbsp; varyings:&nbsp; string[],&nbsp; bufferMode:&nbsp; GLenum) | void |
| getTransformFeedbackVarying(program:&nbsp; WebGLProgram,&nbsp; index:&nbsp; GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null |
| pauseTransformFeedback() | void |
| resumeTransformFeedback() | void |
| bindBufferBase(target:&nbsp; GLenum,&nbsp; index:&nbsp; GLuint,&nbsp; buffer:&nbsp; WebGLBuffer&nbsp;\|&nbsp;null) | void |
| bindBufferRange(target:&nbsp; GLenum,&nbsp; index:&nbsp; GLuint,&nbsp; buffer:&nbsp; WebGLBuffer&nbsp;\|&nbsp;null,&nbsp; offset:&nbsp; GLintptr,&nbsp; size:&nbsp; GLsizeiptr) | void |
| getIndexedParameter(target:&nbsp; GLenum,&nbsp; index:&nbsp; GLuint) | any |
| getUniformIndices(program:&nbsp; WebGLProgram,&nbsp; uniformNames:&nbsp; string[]) | GLuint[]&nbsp;\|&nbsp;null |
| getActiveUniforms(program:&nbsp; WebGLProgram,&nbsp; uniformIndices:&nbsp; GLuint[],&nbsp; pname:&nbsp; GLenum) | any |
| getUniformBlockIndex(program:&nbsp; WebGLProgram,&nbsp; uniformBlockName:&nbsp; string) | GLuint |
| getActiveUniformBlockParameter(program:&nbsp; WebGLProgram,&nbsp; uniformBlockIndex:&nbsp; GLuint,&nbsp; pname:&nbsp; GLenum) | any |
| getActiveUniformBlockName(program:&nbsp; WebGLProgram,&nbsp; uniformBlockIndex:&nbsp; GLuint) | string&nbsp;\|&nbsp;null |
| uniformBlockBinding(program:&nbsp; WebGLProgram,&nbsp; uniformBlockIndex:&nbsp; GLuint,&nbsp; uniformBlockBinding:&nbsp; GLuint) | void |
| createVertexArray() | WebGLVertexArrayObject&nbsp;\|&nbsp;null |
| deleteVertexArray(vertexArray:&nbsp; WebGLVertexArrayObject&nbsp;\|&nbsp;null) | void |
| isVertexArray(vertexArray:&nbsp; WebGLVertexArrayObject&nbsp;\|&nbsp;null) | GLboolean |
| bindVertexArray(array:&nbsp; WebGLVertexArrayObject&nbsp;\|&nbsp;null) | void |
## webgl.WebGL2RenderingContextOverloads
WebGL2RenderingContextOverloads
| Method| Return Value Type|
| -------- | ---------- |
| bufferData(target:&nbsp; GLenum,&nbsp; size:&nbsp; GLsizeiptr,&nbsp; usage:&nbsp; GLenum) | void |
| bufferData(target:&nbsp; GLenum,&nbsp; srcData:&nbsp; BufferSource&nbsp;\|&nbsp;null,&nbsp; usage:&nbsp; GLenum) | void |
| bufferSubData(target:&nbsp; GLenum,&nbsp; dstByteOffset:&nbsp; GLintptr,&nbsp; srcData:&nbsp; BufferSource) | void |
| bufferData(target:&nbsp; GLenum,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; usage:&nbsp; GLenum,&nbsp; srcOffset:&nbsp; GLuint,&nbsp; length?:&nbsp; GLuint) | void |
| bufferSubData(target:&nbsp; GLenum,&nbsp; dstByteOffset:&nbsp; GLintptr,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; srcOffset:&nbsp; GLuint,&nbsp; length?:&nbsp; GLuint) | void |
| texImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; pixels:&nbsp; ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; source:&nbsp; TexImageSource) | void |
| texSubImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; pixels:&nbsp; ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texSubImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; source:&nbsp; TexImageSource) | void |
| texImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; pboOffset:&nbsp; GLintptr) | void |
| texImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; source:&nbsp; TexImageSource) | void |
| texImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; srcOffset:&nbsp; GLuint) | void |
| texSubImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; pboOffset:&nbsp; GLintptr) | void |
| texSubImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; source:&nbsp; TexImageSource) | void |
| texSubImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; srcOffset:&nbsp; GLuint) | void |
| compressedTexImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLenum,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; imageSize:&nbsp; GLsizei,&nbsp; offset:&nbsp; GLintptr) | void |
| compressedTexImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; internalformat:&nbsp; GLenum,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; border:&nbsp; GLint,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLengthOverride?:&nbsp; GLuint) | void |
| compressedTexSubImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; imageSize:&nbsp; GLsizei,&nbsp; offset:&nbsp; GLintptr) | void |
| compressedTexSubImage2D(target:&nbsp; GLenum,&nbsp; level:&nbsp; GLint,&nbsp; xoffset:&nbsp; GLint,&nbsp; yoffset:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; srcData:&nbsp; ArrayBufferView,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLengthOverride?:&nbsp; GLuint) | void |
| uniform1fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform2fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform3fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform4fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform1iv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Int32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform2iv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Int32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform3iv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Int32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniform4iv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; data:&nbsp; Int32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix2fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix3fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| uniformMatrix4fv(location:&nbsp; WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp; transpose:&nbsp; GLboolean,&nbsp; data:&nbsp; Float32List,&nbsp; srcOffset?:&nbsp; GLuint,&nbsp; srcLength?:&nbsp; GLuint) | void |
| readPixels(x:&nbsp; GLint,&nbsp; y:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; dstData:&nbsp; ArrayBufferView&nbsp;\|&nbsp;null) | void |
| readPixels(x:&nbsp; GLint,&nbsp; y:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; offset:&nbsp; GLintptr) | void |
| readPixels(x:&nbsp; GLint,&nbsp; y:&nbsp; GLint,&nbsp; width:&nbsp; GLsizei,&nbsp; height:&nbsp; GLsizei,&nbsp; format:&nbsp; GLenum,&nbsp; type:&nbsp; GLenum,&nbsp; dstData:&nbsp; ArrayBufferView,&nbsp; dstOffset:&nbsp; GLuint) | void |
## webgl.WebGLQuery
WebGLQuery
## webgl.WebGLSampler
WebGLSampler
## webgl.WebGLSync
WebGLSync
## webgl.WebGLTransformFeedback
WebGLTransformFeedback
## webgl.WebGLVertexArrayObject
WebGLVertexArrayObject
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册