diff --git a/en/application-dev/reference/apis/js-apis-display.md b/en/application-dev/reference/apis/js-apis-display.md index 5ca404121fdaf677c863f8a23f338c20bd75e136..d0c2ad5562ab851003c8e33828fdeb25f5f68847 100644 --- a/en/application-dev/reference/apis/js-apis-display.md +++ b/en/application-dev/reference/apis/js-apis-display.md @@ -14,36 +14,40 @@ import display from '@ohos.display'; Provides the state of a display. +**System capability**: SystemCapability.WindowManager.WindowManager.Core + | Name| Default Value| Description| | -------- | -------- | -------- | -| STATE_UNKNOWN | 0 | Unknown.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| STATE_OFF | 1 | The display is shut down.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| STATE_ON | 2 | The display is powered on.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| STATE_DOZE | 3 | The display is in sleep mode.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| STATE_DOZE_SUSPEND | 4 | The display is in sleep mode, and the CPU is suspended.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| STATE_VR | 5 | The display is in VR mode.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| STATE_ON_SUSPEND | 6 | The display is powered on, and the CPU is suspended.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| +| STATE_UNKNOWN | 0 | Unknown.| +| STATE_OFF | 1 | The display is shut down.| +| STATE_ON | 2 | The display is powered on.| +| STATE_DOZE | 3 | The display is in sleep mode.| +| STATE_DOZE_SUSPEND | 4 | The display is in sleep mode, and the CPU is suspended.| +| STATE_VR | 5 | The display is in VR mode.| +| STATE_ON_SUSPEND | 6 | The display is powered on, and the CPU is suspended.| ## Display Describes the attributes of a display. +**System capability**: SystemCapability.WindowManager.WindowManager.Core + | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | -| id | number | Yes| No| ID of the display.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| name | string | Yes| No| Name of the display.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| alive | boolean | Yes| No| Whether the display is alive.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| state | [DisplayState](#DisplayState) | Yes| No| State of the display.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| refreshRate | number | Yes| No| Refresh rate of the display.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| rotation | number | Yes| No| Screen rotation angle of the display.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| width | number | Yes| No| Width of the display, in pixels.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| height | number | Yes| No| Height of the display, in pixels.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| densityDPI | number | Yes| No| Screen density of the display, in DPI.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| densityPixels | number | Yes| No| Screen density of the display, in pixels.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| scaledDensity | number | Yes| No| Scaling factor for fonts displayed on the display.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| xDPI | number | Yes| No| Exact physical dots per inch of the screen in the horizontal direction.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| yDPI | number | Yes| No| Exact physical dots per inch of the screen in the vertical direction.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| +| id | number | Yes| No| ID of the display.| +| name | string | Yes| No| Name of the display.| +| alive | boolean | Yes| No| Whether the display is alive.| +| state | [DisplayState](#DisplayState) | Yes| No| State of the display.| +| refreshRate | number | Yes| No| Refresh rate of the display.| +| rotation | number | Yes| No| Screen rotation angle of the display.| +| width | number | Yes| No| Width of the display, in pixels.| +| height | number | Yes| No| Height of the display, in pixels.| +| densityDPI | number | Yes| No| Screen density of the display, in DPI.| +| densityPixels | number | Yes| No| Screen density of the display, in pixels.| +| scaledDensity | number | Yes| No| Scaling factor for fonts displayed on the display.| +| xDPI | number | Yes| No| Exact physical dots per inch of the screen in the horizontal direction.| +| yDPI | number | Yes| No| Exact physical dots per inch of the screen in the vertical direction.| ## display.getDefaultDisplay @@ -82,7 +86,7 @@ Obtains the default display object. - Return value - | Type| Description| + | Type | Description | | ---------------------------------- | ---------------------------------------------- | | Promise<[Display](#Display)> | Promise used to return the default display object.| @@ -107,9 +111,9 @@ Obtains all the display objects. - Parameters - | Name| Type| Mandatory| Description| + | Name | Type | Mandatory| Description | | -------- | ---------------------------------------------------- | ---- | ------------------------------- | - | callback | AsyncCallback<Array<[Display](Display)>> | Yes| Callback used to return all the display objects.| + | callback | AsyncCallback<Array<[Display](Display)>> | Yes | Callback used to return all the display objects.| - Example @@ -133,7 +137,7 @@ Obtains all the display objects. - Return value - | Type| Description| + | Type | Description | | ----------------------------------------------- | ------------------------------------------------------- | | Promise<Array<[Display](#Display)>> | Promise used to return an array containing all the display objects.| @@ -159,7 +163,7 @@ Enables listening. - Parameters | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | type | string | Yes| Listening type. The available values are as follows:
- **add**: listening for whether a display is added
- **remove**: listening for whether a display is removed
- **change**: listening for whether a display is changed| + | type | string | Yes| Listening type. The available values are as follows:
- **add**: listening for whether a display is added
- **remove**: listening for whether a display is removed
- **change**: listening for whether a display is changed| | callback | Callback<number> | Yes| Callback used to return the ID of the display.| - Example @@ -183,7 +187,7 @@ Disables listening. - Parameters | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | type | string | Yes| Listening type. The available values are as follows:
- **add**: listening for whether a display is added
- **remove**: listening for whether a display is removed
- **change**: listening for whether a display is changed| + | type | string | Yes| Listening type. The available values are as follows:
- **add**: listening for whether a display is added
- **remove**: listening for whether a display is removed
- **change**: listening for whether a display is changed| | callback | Callback<number> | No| Callback used to return the ID of the display.| - Example diff --git a/en/application-dev/reference/apis/js-apis-screenshot.md b/en/application-dev/reference/apis/js-apis-screenshot.md index 1a402eb84c10b9a6e914f0a10b789eebe1df61e1..82e50e09cfa95f0610c99d44fa4af11375a575a1 100644 --- a/en/application-dev/reference/apis/js-apis-screenshot.md +++ b/en/application-dev/reference/apis/js-apis-screenshot.md @@ -13,33 +13,40 @@ import screenshot from '@ohos.screenshot'; Describes screenshot options. -| Name| Type| Mandatory| Description| +**System capability**: SystemCapability.WindowManager.WindowManager.Core + + +| Name | Type | Mandatory| Description | | ---------- | ------------- | ---- | ------------------------------------------------------------ | -| screenRect | [Rect](#Rect) | No| Region of the screen to capture. If this parameter is null, the full screen will be captured.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| imageSize | [Size](#Size) | No| Size of the screen region to capture. If this parameter is null, the full screen will be captured.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| rotation | number | No| Rotation angle of the screenshot. The value can be **0**, **90**, **180**, or **270**. The default value is **0**.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| +| screenRect | [Rect](#Rect) | No | Region of the screen to capture. If this parameter is null, the full screen will be captured.| +| imageSize | [Size](#Size) | No | Size of the screen region to capture. If this parameter is null, the full screen will be captured.| +| rotation | number | No | Rotation angle of the screenshot. Currently, the value can be **0** only. The default value is **0**.| ## Rect Describes the region of the screen to capture. -| Name| Type| Mandatory| Description| +**System capability**: SystemCapability.WindowManager.WindowManager.Core + +| Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | -| left | number | Yes| Left boundary of the screen region to capture.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| top | number | Yes| Top boundary of the screen region to capture.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| width | number | Yes| Width of the screen region to capture.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| height | number | Yes| Height of the screen region to capture.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| +| left | number | Yes | Left boundary of the screen region to capture.| +| top | number | Yes | Top boundary of the screen region to capture.| +| width | number | Yes | Width of the screen region to capture.| +| height | number | Yes | Height of the screen region to capture.| ## Size Describes the size of the screen region to capture. -| Name| Type| Mandatory| Description| +**System capability**: SystemCapability.WindowManager.WindowManager.Core + +| Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | -| width | number | Yes| Width of the screen region to capture.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| -| height | number | Yes| Height of the screen region to capture.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core| +| width | number | Yes | Width of the screen region to capture.| +| height | number | Yes | Height of the screen region to capture.| ## screenshot.save @@ -53,10 +60,10 @@ Takes a screenshot and saves it as a **PixelMap** object. This method uses a cal - Parameters - | Name| Type| Mandatory| Description| + | Name | Type | Mandatory| Description | | -------- | --------------------------------------- | ---- | ------------------------------------------------------------ | - | options | [ScreenshotOptions](#ScreenshotOptions) | No| Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.| - | callback | AsyncCallback<image.PixelMap> | Yes| Callback used to return a **PixelMap** object.| + | options | [ScreenshotOptions](#ScreenshotOptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.| + | callback | AsyncCallback<image.PixelMap> | Yes | Callback used to return a **PixelMap** object. | - Example @@ -93,13 +100,13 @@ Takes a screenshot and saves it as a **PixelMap** object. This method uses a pro - Parameters - | Name| Type| Mandatory| Description| + | Name | Type | Mandatory| Description | | ------- | --------------------------------------- | ---- | ------------------------------------------------------------ | - | options | [ScreenshotOptions](#ScreenshotOptions) | No| Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.| + | options | [ScreenshotOptions](#ScreenshotOptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.| - Return value - | Type| Description| + | Type | Description | | ----------------------------- | ----------------------------------------------- | | Promise<image.PixelMap> | Promise used to return an **image.PixelMap** object.| diff --git a/en/application-dev/reference/apis/js-apis-webgl.md b/en/application-dev/reference/apis/js-apis-webgl.md index da8d99f69cf791cf35f3e9bb3346ea8b1f96ca5e..677ae513e3504936baba16ec9fcb545ab3abca66 100644 --- a/en/application-dev/reference/apis/js-apis-webgl.md +++ b/en/application-dev/reference/apis/js-apis-webgl.md @@ -1,23 +1,15 @@ # webgl -> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** +> ![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/2.0/). - - -## Modules to Import - - -``` -import webgl from '@ohos.webglnapi'; -``` +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/). ## Invoking Method -Create a **<canvas>** component in the HML file. The following is an example: +Create a **** component in the HML file. The following is an example: ``` @@ -27,7 +19,7 @@ Create a **<canvas>** component in the HML file. The following is an examp ``` -Obtain the **<canvas>** component instance in the JS file. The following is an example: +Obtain the **** component instance in the JS file. The following is an example: ``` @@ -42,48 +34,52 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ## Type - **Table1** Type +**System capability**: SystemCapability.Graphic.Graphic2D.WebGL -| Name | Type | Description | -| -------- | -------- | -------- | -| GLenum | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLboolean | boolean | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLbitfield | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLbyte | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLshort | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLint | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLsizei | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLintptr | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLsizeiptr | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLubyte | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLushort | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLuint | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLfloat | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| GLclampf | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| TexImageSource | ImageData | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| Float32List | array | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| Int32List | array | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| WebGLPowerPreference | string | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | + **Table 1** Type + +| Name| Type| +| -------- | -------- | +| GLenum | number | +| GLboolean | boolean | +| GLbitfield | number | +| GLbyte | number | +| GLshort | number | +| GLint | number | +| GLsizei | number | +| GLintptr | number | +| GLsizeiptr | number | +| GLubyte | number | +| GLushort | number | +| GLuint | number | +| GLfloat | number | +| GLclampf | number | +| TexImageSource | ImageData | +| Float32List | array | +| Int32List | array | +| WebGLPowerPreference | string | ## Interface - **Table2** Interface +**System capability**: SystemCapability.Graphic.Graphic2D.WebGL -| Name | Description | -| -------- | -------- | -| [WebGLContextAttributes](#webglcontextattributes) | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| WebGLBuffer | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| WebGLFrameBuffer | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| WebGLProgram | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| WebGLRenderbuffer | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| WebGLShader | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| WebGLTexture | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| WebGLUniformLocation | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| [WebGLActiveInfo](#webglactiveinfo) | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| [WebGLShaderPrecisionFormat](#webglshaderprecisionformat) | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| [WebGLRenderingContextBase](#webglrenderingcontextbase) | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | -| [WebGLRenderingContextOverloads](#webglrenderingcontextoverloads) | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL | + **Table 2** Interface + +| Name| +| -------- | +| [WebGLContextAttributes](#webglcontextattributes) | +| WebGLBuffer | +| WebGLFrameBuffer | +| WebGLProgram | +| WebGLRenderbuffer | +| WebGLShader | +| WebGLTexture | +| WebGLUniformLocation | +| [WebGLActiveInfo](#webglactiveinfo) | +| [WebGLShaderPrecisionFormat](#webglshaderprecisionformat) | +| [WebGLRenderingContextBase](#webglrenderingcontextbase) | +| [WebGLRenderingContextOverloads](#webglrenderingcontextoverloads) | ## WebGLContextAttributes @@ -91,39 +87,39 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); WebGLContextAttributes - | Name | Type | Mandatory | + | 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 | +| 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| ## WebGLActiveInfo WebGLActiveInfo - | Name | Type | Mandatory | + | Name| Type| Mandatory| | -------- | -------- | -------- | -| size | GLint | Yes | -| type | GLenum | Yes | -| name | string | Yes | +| size | GLint | Yes| +| type | GLenum | Yes| +| name | string | Yes| ## WebGLShaderPrecisionFormat WebGLShaderPrecisionFormat - | Name | Type | Mandatory | + | Name| Type| Mandatory| | -------- | -------- | -------- | -| rangeMin | GLint | Yes | -| rangeMax | GLint | Yes | -| precision | GLint | Yes | +| rangeMin | GLint | Yes| +| rangeMax | GLint | Yes| +| precision | GLint | Yes| ## WebGLRenderingContextBase @@ -133,310 +129,310 @@ WebGLRenderingContextBase ### Attributes - | Name | Type | Mandatory | + | Name| Type| Mandatory| | -------- | -------- | -------- | -| DEPTH_BUFFER_BIT | GLenum | Yes | -| STENCIL_BUFFER_BIT | GLenum | Yes | -| COLOR_BUFFER_BIT | GLenum | Yes | -| POINTS | GLenum | Yes | -| LINES | GLenum | Yes | -| LINE_LOOP | GLenum | Yes | -| LINE_STRIP | GLenum | Yes | -| TRIANGLES | GLenum | Yes | -| TRIANGLE_STRIP | GLenum | Yes | -| TRIANGLE_FAN | GLenum | Yes | -| ZERO | GLenum | Yes | -| ONE | GLenum | Yes | -| SRC_COLOR | GLenum | Yes | -| ONE_MINUS_SRC_COLOR | GLenum | Yes | -| SRC_ALPHA | GLenum | Yes | -| ONE_MINUS_SRC_ALPHA | GLenum | Yes | -| DST_ALPHA | GLenum | Yes | -| ONE_MINUS_DST_ALPHA | GLenum | Yes | -| DST_COLOR | GLenum | Yes | -| ONE_MINUS_DST_COLOR | GLenum | Yes | -| SRC_ALPHA_SATURATE | GLenum | Yes | -| FUNC_ADD | GLenum | Yes | -| BLEND_EQUATION | GLenum | Yes | -| BLEND_EQUATION_RGB | GLenum | Yes | -| BLEND_EQUATION_ALPHA | GLenum | Yes | -| FUNC_SUBTRACT | GLenum | Yes | -| FUNC_REVERSE_SUBTRACT | GLenum | Yes | -| BLEND_DST_RGB | GLenum | Yes | -| BLEND_SRC_RGB | GLenum | Yes | -| BLEND_DST_ALPHA | GLenum | Yes | -| BLEND_SRC_ALPHA | GLenum | Yes | -| CONSTANT_COLOR | GLenum | Yes | -| ONE_MINUS_CONSTANT_COLOR | GLenum | Yes | -| CONSTANT_ALPHA | GLenum | Yes | -| ONE_MINUS_CONSTANT_ALPHA | GLenum | Yes | -| BLEND_COLOR | GLenum | Yes | -| ARRAY_BUFFER | GLenum | Yes | -| ELEMENT_ARRAY_BUFFER | GLenum | Yes | -| ARRAY_BUFFER_BINDING | GLenum | Yes | -| ELEMENT_ARRAY_BUFFER_BINDING | GLenum | Yes | -| STREAM_DRAW | GLenum | Yes | -| STATIC_DRAW | GLenum | Yes | -| DYNAMIC_DRAW | GLenum | Yes | -| BUFFER_SIZE | GLenum | Yes | -| BUFFER_USAGE | GLenum | Yes | -| CURRENT_VERTEX_ATTRIB | GLenum | Yes | -| FRONT | GLenum | Yes | -| BACK | GLenum | Yes | -| FRONT_AND_BACK | GLenum | Yes | -| CULL_FACE | GLenum | Yes | -| BLEND | GLenum | Yes | -| DITHER | GLenum | Yes | -| STENCIL_TEST | GLenum | Yes | -| DEPTH_TEST | GLenum | Yes | -| SCISSOR_TEST | GLenum | Yes | -| POLYGON_OFFSET_FILL | GLenum | Yes | -| SAMPLE_ALPHA_TO_COVERAGE | GLenum | Yes | -| SAMPLE_COVERAGE | GLenum | Yes | -| NO_ERROR | GLenum | Yes | -| INVALID_ENUM | GLenum | Yes | -| INVALID_VALUE | GLenum | Yes | -| INVALID_OPERATION | GLenum | Yes | -| OUT_OF_MEMORY | GLenum | Yes | -| CW | GLenum | Yes | -| CCW | GLenum | Yes | -| LINE_WIDTH | GLenum | Yes | -| ALIASED_POINT_SIZE_RANGE | GLenum | Yes | -| ALIASED_LINE_WIDTH_RANGE | GLenum | Yes | -| CULL_FACE_MODE | GLenum | Yes | -| FRONT_FACE | GLenum | Yes | -| DEPTH_RANGE | GLenum | Yes | -| DEPTH_WRITEMASK | GLenum | Yes | -| DEPTH_CLEAR_VALUE | GLenum | Yes | -| DEPTH_FUNC | GLenum | Yes | -| STENCIL_CLEAR_VALUE | GLenum | Yes | -| STENCIL_FUNC | GLenum | Yes | -| STENCIL_FAIL | GLenum | Yes | -| STENCIL_PASS_DEPTH_FAIL | GLenum | Yes | -| STENCIL_PASS_DEPTH_PASS | GLenum | Yes | -| STENCIL_REF | GLenum | Yes | -| STENCIL_VALUE_MASK | GLenum | Yes | -| STENCIL_WRITEMASK | GLenum | Yes | -| STENCIL_BACK_FUNC | GLenum | Yes | -| STENCIL_BACK_FAIL | GLenum | Yes | -| STENCIL_BACK_PASS_DEPTH_FAIL | GLenum | Yes | -| STENCIL_BACK_PASS_DEPTH_PASS | GLenum | Yes | -| STENCIL_BACK_REF | GLenum | Yes | -| STENCIL_BACK_VALUE_MASK | GLenum | Yes | -| STENCIL_BACK_WRITEMASK | GLenum | Yes | -| VIEWPORT | GLenum | Yes | -| SCISSOR_BOX | GLenum | Yes | -| COLOR_CLEAR_VALUE | GLenum | Yes | -| COLOR_WRITEMASK | GLenum | Yes | -| UNPACK_ALIGNMENT | GLenum | Yes | -| PACK_ALIGNMENT | GLenum | Yes | -| MAX_TEXTURE_SIZE | GLenum | Yes | -| MAX_VIEWPORT_DIMS | GLenum | Yes | -| SUBPIXEL_BITS | GLenum | Yes | -| RED_BITS | GLenum | Yes | -| GREEN_BITS | GLenum | Yes | -| BLUE_BITS | GLenum | Yes | -| ALPHA_BITS | GLenum | Yes | -| DEPTH_BITS | GLenum | Yes | -| STENCIL_BITS | GLenum | Yes | -| POLYGON_OFFSET_UNITS | GLenum | Yes | -| POLYGON_OFFSET_FACTOR | GLenum | Yes | -| TEXTURE_BINDING_2D | GLenum | Yes | -| SAMPLE_BUFFERS | GLenum | Yes | -| SAMPLES | GLenum | Yes | -| SAMPLE_COVERAGE_VALUE | GLenum | Yes | -| SAMPLE_COVERAGE_INVERT | GLenum | Yes | -| COMPRESSED_TEXTURE_FORMATS | GLenum | Yes | -| DONT_CARE | GLenum | Yes | -| FASTEST | GLenum | Yes | -| NICEST | GLenum | Yes | -| GENERATE_MIPMAP_HINT | GLenum | Yes | -| BYTE | GLenum | Yes | -| UNSIGNED_BYTE | GLenum | Yes | -| SHORT | GLenum | Yes | -| UNSIGNED_SHORT | GLenum | Yes | -| INT | GLenum | Yes | -| UNSIGNED_INT | GLenum | Yes | -| FLOAT | GLenum | Yes | -| DEPTH_COMPONENT | GLenum | Yes | -| ALPHA | GLenum | Yes | -| RGB | GLenum | Yes | -| RGBA | GLenum | Yes | -| LUMINANCE | GLenum | Yes | -| LUMINANCE_ALPHA | GLenum | Yes | -| UNSIGNED_SHORT_4_4_4_4 | GLenum | Yes | -| UNSIGNED_SHORT_5_5_5_1 | GLenum | Yes | -| UNSIGNED_SHORT_5_6_5 | GLenum | Yes | -| FRAGMENT_SHADER | GLenum | Yes | -| VERTEX_SHADER | GLenum | Yes | -| MAX_VERTEX_ATTRIBS | GLenum | Yes | -| MAX_VERTEX_UNIFORM_VECTORS | GLenum | Yes | -| MAX_VARYING_VECTORS | GLenum | Yes | -| MAX_COMBINED_TEXTURE_IMAGE_UNITS | GLenum | Yes | -| MAX_VERTEX_TEXTURE_IMAGE_UNITS | GLenum | Yes | -| MAX_TEXTURE_IMAGE_UNITS | GLenum | Yes | -| MAX_FRAGMENT_UNIFORM_VECTORS | GLenum | Yes | -| SHADER_TYPE | GLenum | Yes | -| DELETE_STATUS | GLenum | Yes | -| LINK_STATUS | GLenum | Yes | -| VALIDATE_STATUS | GLenum | Yes | -| ATTACHED_SHADERS | GLenum | Yes | -| ACTIVE_UNIFORMS | GLenum | Yes | -| ACTIVE_ATTRIBUTES | GLenum | Yes | -| SHADING_LANGUAGE_VERSION | GLenum | Yes | -| CURRENT_PROGRAM | GLenum | Yes | -| NEVER | GLenum | Yes | -| LESS | GLenum | Yes | -| EQUAL | GLenum | Yes | -| LEQUAL | GLenum | Yes | -| GREATER | GLenum | Yes | -| NOTEQUAL | GLenum | Yes | -| GEQUAL | GLenum | Yes | -| ALWAYS | GLenum | Yes | -| KEEP | GLenum | Yes | -| REPLACE | GLenum | Yes | -| INCR | GLenum | Yes | -| DECR | GLenum | Yes | -| INVERT | GLenum | Yes | -| INCR_WRAP | GLenum | Yes | -| DECR_WRAP | GLenum | Yes | -| VENDOR | GLenum | Yes | -| RENDERER | GLenum | Yes | -| VERSION | GLenum | Yes | -| NEAREST | GLenum | Yes | -| LINEAR | GLenum | Yes | -| NEAREST_MIPMAP_NEAREST | GLenum | Yes | -| LINEAR_MIPMAP_NEAREST | GLenum | Yes | -| NEAREST_MIPMAP_LINEAR | GLenum | Yes | -| LINEAR_MIPMAP_LINEAR | GLenum | Yes | -| TEXTURE_MIN_FILTER | GLenum | Yes | -| TEXTURE_WRAP_S | GLenum | Yes | -| TEXTURE_WRAP_T | GLenum | Yes | -| TEXTURE_2D | GLenum | Yes | -| TEXTURE | GLenum | Yes | -| TEXTURE_CUBE_MAP | GLenum | Yes | -| TEXTURE_BINDING_CUBE_MAP | GLenum | Yes | -| TEXTURE_CUBE_MAP_POSITIVE_X | GLenum | Yes | -| TEXTURE_CUBE_MAP_NEGATIVE_X | GLenum | Yes | -| TEXTURE_CUBE_MAP_POSITIVE_Y | GLenum | Yes | -| TEXTURE_CUBE_MAP_NEGATIVE_Y | GLenum | Yes | -| TEXTURE_CUBE_MAP_POSITIVE_Z | GLenum | Yes | -| TEXTURE_CUBE_MAP_NEGATIVE_Z | GLenum | Yes | -| MAX_CUBE_MAP_TEXTURE_SIZE | GLenum | Yes | -| TEXTURE0 | GLenum | Yes | -| TEXTURE1 | GLenum | Yes | -| TEXTURE2 | GLenum | Yes | -| TEXTURE3 | GLenum | Yes | -| TEXTURE4 | GLenum | Yes | -| TEXTURE5 | GLenum | Yes | -| TEXTURE6 | GLenum | Yes | -| TEXTURE7 | GLenum | Yes | -| TEXTURE8 | GLenum | Yes | -| TEXTURE9 | GLenum | Yes | -| TEXTURE10 | GLenum | Yes | -| TEXTURE11 | GLenum | Yes | -| TEXTURE12 | GLenum | Yes | -| TEXTURE13 | GLenum | Yes | -| TEXTURE14 | GLenum | Yes | -| TEXTURE15 | GLenum | Yes | -| TEXTURE16 | GLenum | Yes | -| TEXTURE17 | GLenum | Yes | -| TEXTURE18 | GLenum | Yes | -| TEXTURE19 | GLenum | Yes | -| TEXTURE20 | GLenum | Yes | -| TEXTURE21 | GLenum | Yes | -| TEXTURE22 | GLenum | Yes | -| TEXTURE23 | GLenum | Yes | -| TEXTURE24 | GLenum | Yes | -| TEXTURE25 | GLenum | Yes | -| TEXTURE26 | GLenum | Yes | -| TEXTURE27 | GLenum | Yes | -| TEXTURE28 | GLenum | Yes | -| TEXTURE29 | GLenum | Yes | -| TEXTURE30 | GLenum | Yes | -| TEXTURE31 | GLenum | Yes | -| ACTIVE_TEXTURE | GLenum | Yes | -| REPEAT | GLenum | Yes | -| CLAMP_TO_EDGE | GLenum | Yes | -| MIRRORED_REPEAT | GLenum | Yes | -| FLOAT_VEC2 | GLenum | Yes | -| FLOAT_VEC3 | GLenum | Yes | -| FLOAT_VEC4 | GLenum | Yes | -| INT_VEC2 | GLenum | Yes | -| INT_VEC3 | GLenum | Yes | -| INT_VEC4 | GLenum | Yes | -| BOOL | GLenum | Yes | -| BOOL_VEC2 | GLenum | Yes | -| BOOL_VEC3 | GLenum | Yes | -| BOOL_VEC4 | GLenum | Yes | -| FLOAT_MAT2 | GLenum | Yes | -| FLOAT_MAT3 | GLenum | Yes | -| FLOAT_MAT4 | GLenum | Yes | -| SAMPLER_2D | GLenum | Yes | -| SAMPLER_CUBE | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_ENABLED | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_SIZE | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_STRIDE | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_TYPE | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_NORMALIZED | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_POINTER | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_BUFFER_BINDING | GLenum | Yes | -| IMPLEMENTATION_COLOR_READ_TYPE | GLenum | Yes | -| IMPLEMENTATION_COLOR_READ_FORMAT | GLenum | Yes | -| COMPILE_STATUS | GLenum | Yes | -| LOW_FLOAT | GLenum | Yes | -| MEDIUM_FLOAT | GLenum | Yes | -| HIGH_FLOAT | GLenum | Yes | -| LOW_INT | GLenum | Yes | -| MEDIUM_INT | GLenum | Yes | -| HIGH_INT | GLenum | Yes | -| FRAMEBUFFER | GLenum | Yes | -| RENDERBUFFER | GLenum | Yes | -| RGBA4 | GLenum | Yes | -| RGB5_A1 | GLenum | Yes | -| RGB565 | GLenum | Yes | -| DEPTH_COMPONENT16 | GLenum | Yes | -| STENCIL_INDEX8 | GLenum | Yes | -| DEPTH_STENCIL | GLenum | Yes | -| RENDERBUFFER_WIDTH | GLenum | Yes | -| RENDERBUFFER_HEIGHT | GLenum | Yes | -| RENDERBUFFER_INTERNAL_FORMAT | GLenum | Yes | -| RENDERBUFFER_RED_SIZE | GLenum | Yes | -| RENDERBUFFER_GREEN_SIZE | GLenum | Yes | -| RENDERBUFFER_BLUE_SIZE | GLenum | Yes | -| RENDERBUFFER_ALPHA_SIZE | GLenum | Yes | -| RENDERBUFFER_DEPTH_SIZE | GLenum | Yes | -| RENDERBUFFER_STENCIL_SIZE | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE | GLenum | Yes | -| COLOR_ATTACHMENT0 | GLenum | Yes | -| DEPTH_ATTACHMENT | GLenum | Yes | -| STENCIL_ATTACHMENT | GLenum | Yes | -| DEPTH_STENCIL_ATTACHMENT | GLenum | Yes | -| NONE | GLenum | Yes | -| FRAMEBUFFER_COMPLETE | GLenum | Yes | -| FRAMEBUFFER_INCOMPLETE_ATTACHMENT | GLenum | Yes | -| FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT | GLenum | Yes | -| FRAMEBUFFER_INCOMPLETE_DIMENSIONS | GLenum | Yes | -| FRAMEBUFFER_UNSUPPORTED | GLenum | Yes | -| FRAMEBUFFER_BINDING | GLenum | Yes | -| RENDERBUFFER_BINDING | GLenum | Yes | -| MAX_RENDERBUFFER_SIZE | GLenum | Yes | -| INVALID_FRAMEBUFFER_OPERATION | GLenum | Yes | -| UNPACK_FLIP_Y_WEBGL | GLenum | Yes | -| UNPACK_PREMULTIPLY_ALPHA_WEBGL | GLenum | Yes | -| CONTEXT_LOST_WEBGL | GLenum | Yes | -| UNPACK_COLORSPACE_CONVERSION_WEBGL | GLenum | Yes | -| BROWSER_DEFAULT_WEBGL | GLenum | Yes | -| canvas | HTMLCanvasElement \| OffscreenCanvas | Yes | -| drawingBufferWidth | GLsizei | Yes | -| drawingBufferHeight | GLsizei | Yes | +| DEPTH_BUFFER_BIT | GLenum | Yes| +| STENCIL_BUFFER_BIT | GLenum | Yes| +| COLOR_BUFFER_BIT | GLenum | Yes| +| POINTS | GLenum | Yes| +| LINES | GLenum | Yes| +| LINE_LOOP | GLenum | Yes| +| LINE_STRIP | GLenum | Yes| +| TRIANGLES | GLenum | Yes| +| TRIANGLE_STRIP | GLenum | Yes| +| TRIANGLE_FAN | GLenum | Yes| +| ZERO | GLenum | Yes| +| ONE | GLenum | Yes| +| SRC_COLOR | GLenum | Yes| +| ONE_MINUS_SRC_COLOR | GLenum | Yes| +| SRC_ALPHA | GLenum | Yes| +| ONE_MINUS_SRC_ALPHA | GLenum | Yes| +| DST_ALPHA | GLenum | Yes| +| ONE_MINUS_DST_ALPHA | GLenum | Yes| +| DST_COLOR | GLenum | Yes| +| ONE_MINUS_DST_COLOR | GLenum | Yes| +| SRC_ALPHA_SATURATE | GLenum | Yes| +| FUNC_ADD | GLenum | Yes| +| BLEND_EQUATION | GLenum | Yes| +| BLEND_EQUATION_RGB | GLenum | Yes| +| BLEND_EQUATION_ALPHA | GLenum | Yes| +| FUNC_SUBTRACT | GLenum | Yes| +| FUNC_REVERSE_SUBTRACT | GLenum | Yes| +| BLEND_DST_RGB | GLenum | Yes| +| BLEND_SRC_RGB | GLenum | Yes| +| BLEND_DST_ALPHA | GLenum | Yes| +| BLEND_SRC_ALPHA | GLenum | Yes| +| CONSTANT_COLOR | GLenum | Yes| +| ONE_MINUS_CONSTANT_COLOR | GLenum | Yes| +| CONSTANT_ALPHA | GLenum | Yes| +| ONE_MINUS_CONSTANT_ALPHA | GLenum | Yes| +| BLEND_COLOR | GLenum | Yes| +| ARRAY_BUFFER | GLenum | Yes| +| ELEMENT_ARRAY_BUFFER | GLenum | Yes| +| ARRAY_BUFFER_BINDING | GLenum | Yes| +| ELEMENT_ARRAY_BUFFER_BINDING | GLenum | Yes| +| STREAM_DRAW | GLenum | Yes| +| STATIC_DRAW | GLenum | Yes| +| DYNAMIC_DRAW | GLenum | Yes| +| BUFFER_SIZE | GLenum | Yes| +| BUFFER_USAGE | GLenum | Yes| +| CURRENT_VERTEX_ATTRIB | GLenum | Yes| +| FRONT | GLenum | Yes| +| BACK | GLenum | Yes| +| FRONT_AND_BACK | GLenum | Yes| +| CULL_FACE | GLenum | Yes| +| BLEND | GLenum | Yes| +| DITHER | GLenum | Yes| +| STENCIL_TEST | GLenum | Yes| +| DEPTH_TEST | GLenum | Yes| +| SCISSOR_TEST | GLenum | Yes| +| POLYGON_OFFSET_FILL | GLenum | Yes| +| SAMPLE_ALPHA_TO_COVERAGE | GLenum | Yes| +| SAMPLE_COVERAGE | GLenum | Yes| +| NO_ERROR | GLenum | Yes| +| INVALID_ENUM | GLenum | Yes| +| INVALID_VALUE | GLenum | Yes| +| INVALID_OPERATION | GLenum | Yes| +| OUT_OF_MEMORY | GLenum | Yes| +| CW | GLenum | Yes| +| CCW | GLenum | Yes| +| LINE_WIDTH | GLenum | Yes| +| ALIASED_POINT_SIZE_RANGE | GLenum | Yes| +| ALIASED_LINE_WIDTH_RANGE | GLenum | Yes| +| CULL_FACE_MODE | GLenum | Yes| +| FRONT_FACE | GLenum | Yes| +| DEPTH_RANGE | GLenum | Yes| +| DEPTH_WRITEMASK | GLenum | Yes| +| DEPTH_CLEAR_VALUE | GLenum | Yes| +| DEPTH_FUNC | GLenum | Yes| +| STENCIL_CLEAR_VALUE | GLenum | Yes| +| STENCIL_FUNC | GLenum | Yes| +| STENCIL_FAIL | GLenum | Yes| +| STENCIL_PASS_DEPTH_FAIL | GLenum | Yes| +| STENCIL_PASS_DEPTH_PASS | GLenum | Yes| +| STENCIL_REF | GLenum | Yes| +| STENCIL_VALUE_MASK | GLenum | Yes| +| STENCIL_WRITEMASK | GLenum | Yes| +| STENCIL_BACK_FUNC | GLenum | Yes| +| STENCIL_BACK_FAIL | GLenum | Yes| +| STENCIL_BACK_PASS_DEPTH_FAIL | GLenum | Yes| +| STENCIL_BACK_PASS_DEPTH_PASS | GLenum | Yes| +| STENCIL_BACK_REF | GLenum | Yes| +| STENCIL_BACK_VALUE_MASK | GLenum | Yes| +| STENCIL_BACK_WRITEMASK | GLenum | Yes| +| VIEWPORT | GLenum | Yes| +| SCISSOR_BOX | GLenum | Yes| +| COLOR_CLEAR_VALUE | GLenum | Yes| +| COLOR_WRITEMASK | GLenum | Yes| +| UNPACK_ALIGNMENT | GLenum | Yes| +| PACK_ALIGNMENT | GLenum | Yes| +| MAX_TEXTURE_SIZE | GLenum | Yes| +| MAX_VIEWPORT_DIMS | GLenum | Yes| +| SUBPIXEL_BITS | GLenum | Yes| +| RED_BITS | GLenum | Yes| +| GREEN_BITS | GLenum | Yes| +| BLUE_BITS | GLenum | Yes| +| ALPHA_BITS | GLenum | Yes| +| DEPTH_BITS | GLenum | Yes| +| STENCIL_BITS | GLenum | Yes| +| POLYGON_OFFSET_UNITS | GLenum | Yes| +| POLYGON_OFFSET_FACTOR | GLenum | Yes| +| TEXTURE_BINDING_2D | GLenum | Yes| +| SAMPLE_BUFFERS | GLenum | Yes| +| SAMPLES | GLenum | Yes| +| SAMPLE_COVERAGE_VALUE | GLenum | Yes| +| SAMPLE_COVERAGE_INVERT | GLenum | Yes| +| COMPRESSED_TEXTURE_FORMATS | GLenum | Yes| +| DONT_CARE | GLenum | Yes| +| FASTEST | GLenum | Yes| +| NICEST | GLenum | Yes| +| GENERATE_MIPMAP_HINT | GLenum | Yes| +| BYTE | GLenum | Yes| +| UNSIGNED_BYTE | GLenum | Yes| +| SHORT | GLenum | Yes| +| UNSIGNED_SHORT | GLenum | Yes| +| INT | GLenum | Yes| +| UNSIGNED_INT | GLenum | Yes| +| FLOAT | GLenum | Yes| +| DEPTH_COMPONENT | GLenum | Yes| +| ALPHA | GLenum | Yes| +| RGB | GLenum | Yes| +| RGBA | GLenum | Yes| +| LUMINANCE | GLenum | Yes| +| LUMINANCE_ALPHA | GLenum | Yes| +| UNSIGNED_SHORT_4_4_4_4 | GLenum | Yes| +| UNSIGNED_SHORT_5_5_5_1 | GLenum | Yes| +| UNSIGNED_SHORT_5_6_5 | GLenum | Yes| +| FRAGMENT_SHADER | GLenum | Yes| +| VERTEX_SHADER | GLenum | Yes| +| MAX_VERTEX_ATTRIBS | GLenum | Yes| +| MAX_VERTEX_UNIFORM_VECTORS | GLenum | Yes| +| MAX_VARYING_VECTORS | GLenum | Yes| +| MAX_COMBINED_TEXTURE_IMAGE_UNITS | GLenum | Yes| +| MAX_VERTEX_TEXTURE_IMAGE_UNITS | GLenum | Yes| +| MAX_TEXTURE_IMAGE_UNITS | GLenum | Yes| +| MAX_FRAGMENT_UNIFORM_VECTORS | GLenum | Yes| +| SHADER_TYPE | GLenum | Yes| +| DELETE_STATUS | GLenum | Yes| +| LINK_STATUS | GLenum | Yes| +| VALIDATE_STATUS | GLenum | Yes| +| ATTACHED_SHADERS | GLenum | Yes| +| ACTIVE_UNIFORMS | GLenum | Yes| +| ACTIVE_ATTRIBUTES | GLenum | Yes| +| SHADING_LANGUAGE_VERSION | GLenum | Yes| +| CURRENT_PROGRAM | GLenum | Yes| +| NEVER | GLenum | Yes| +| LESS | GLenum | Yes| +| EQUAL | GLenum | Yes| +| LEQUAL | GLenum | Yes| +| GREATER | GLenum | Yes| +| NOTEQUAL | GLenum | Yes| +| GEQUAL | GLenum | Yes| +| ALWAYS | GLenum | Yes| +| KEEP | GLenum | Yes| +| REPLACE | GLenum | Yes| +| INCR | GLenum | Yes| +| DECR | GLenum | Yes| +| INVERT | GLenum | Yes| +| INCR_WRAP | GLenum | Yes| +| DECR_WRAP | GLenum | Yes| +| VENDOR | GLenum | Yes| +| RENDERER | GLenum | Yes| +| VERSION | GLenum | Yes| +| NEAREST | GLenum | Yes| +| LINEAR | GLenum | Yes| +| NEAREST_MIPMAP_NEAREST | GLenum | Yes| +| LINEAR_MIPMAP_NEAREST | GLenum | Yes| +| NEAREST_MIPMAP_LINEAR | GLenum | Yes| +| LINEAR_MIPMAP_LINEAR | GLenum | Yes| +| TEXTURE_MIN_FILTER | GLenum | Yes| +| TEXTURE_WRAP_S | GLenum | Yes| +| TEXTURE_WRAP_T | GLenum | Yes| +| TEXTURE_2D | GLenum | Yes| +| TEXTURE | GLenum | Yes| +| TEXTURE_CUBE_MAP | GLenum | Yes| +| TEXTURE_BINDING_CUBE_MAP | GLenum | Yes| +| TEXTURE_CUBE_MAP_POSITIVE_X | GLenum | Yes| +| TEXTURE_CUBE_MAP_NEGATIVE_X | GLenum | Yes| +| TEXTURE_CUBE_MAP_POSITIVE_Y | GLenum | Yes| +| TEXTURE_CUBE_MAP_NEGATIVE_Y | GLenum | Yes| +| TEXTURE_CUBE_MAP_POSITIVE_Z | GLenum | Yes| +| TEXTURE_CUBE_MAP_NEGATIVE_Z | GLenum | Yes| +| MAX_CUBE_MAP_TEXTURE_SIZE | GLenum | Yes| +| TEXTURE0 | GLenum | Yes| +| TEXTURE1 | GLenum | Yes| +| TEXTURE2 | GLenum | Yes| +| TEXTURE3 | GLenum | Yes| +| TEXTURE4 | GLenum | Yes| +| TEXTURE5 | GLenum | Yes| +| TEXTURE6 | GLenum | Yes| +| TEXTURE7 | GLenum | Yes| +| TEXTURE8 | GLenum | Yes| +| TEXTURE9 | GLenum | Yes| +| TEXTURE10 | GLenum | Yes| +| TEXTURE11 | GLenum | Yes| +| TEXTURE12 | GLenum | Yes| +| TEXTURE13 | GLenum | Yes| +| TEXTURE14 | GLenum | Yes| +| TEXTURE15 | GLenum | Yes| +| TEXTURE16 | GLenum | Yes| +| TEXTURE17 | GLenum | Yes| +| TEXTURE18 | GLenum | Yes| +| TEXTURE19 | GLenum | Yes| +| TEXTURE20 | GLenum | Yes| +| TEXTURE21 | GLenum | Yes| +| TEXTURE22 | GLenum | Yes| +| TEXTURE23 | GLenum | Yes| +| TEXTURE24 | GLenum | Yes| +| TEXTURE25 | GLenum | Yes| +| TEXTURE26 | GLenum | Yes| +| TEXTURE27 | GLenum | Yes| +| TEXTURE28 | GLenum | Yes| +| TEXTURE29 | GLenum | Yes| +| TEXTURE30 | GLenum | Yes| +| TEXTURE31 | GLenum | Yes| +| ACTIVE_TEXTURE | GLenum | Yes| +| REPEAT | GLenum | Yes| +| CLAMP_TO_EDGE | GLenum | Yes| +| MIRRORED_REPEAT | GLenum | Yes| +| FLOAT_VEC2 | GLenum | Yes| +| FLOAT_VEC3 | GLenum | Yes| +| FLOAT_VEC4 | GLenum | Yes| +| INT_VEC2 | GLenum | Yes| +| INT_VEC3 | GLenum | Yes| +| INT_VEC4 | GLenum | Yes| +| BOOL | GLenum | Yes| +| BOOL_VEC2 | GLenum | Yes| +| BOOL_VEC3 | GLenum | Yes| +| BOOL_VEC4 | GLenum | Yes| +| FLOAT_MAT2 | GLenum | Yes| +| FLOAT_MAT3 | GLenum | Yes| +| FLOAT_MAT4 | GLenum | Yes| +| SAMPLER_2D | GLenum | Yes| +| SAMPLER_CUBE | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_ENABLED | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_SIZE | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_STRIDE | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_TYPE | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_NORMALIZED | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_POINTER | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_BUFFER_BINDING | GLenum | Yes| +| IMPLEMENTATION_COLOR_READ_TYPE | GLenum | Yes| +| IMPLEMENTATION_COLOR_READ_FORMAT | GLenum | Yes| +| COMPILE_STATUS | GLenum | Yes| +| LOW_FLOAT | GLenum | Yes| +| MEDIUM_FLOAT | GLenum | Yes| +| HIGH_FLOAT | GLenum | Yes| +| LOW_INT | GLenum | Yes| +| MEDIUM_INT | GLenum | Yes| +| HIGH_INT | GLenum | Yes| +| FRAMEBUFFER | GLenum | Yes| +| RENDERBUFFER | GLenum | Yes| +| RGBA4 | GLenum | Yes| +| RGB5_A1 | GLenum | Yes| +| RGB565 | GLenum | Yes| +| DEPTH_COMPONENT16 | GLenum | Yes| +| STENCIL_INDEX8 | GLenum | Yes| +| DEPTH_STENCIL | GLenum | Yes| +| RENDERBUFFER_WIDTH | GLenum | Yes| +| RENDERBUFFER_HEIGHT | GLenum | Yes| +| RENDERBUFFER_INTERNAL_FORMAT | GLenum | Yes| +| RENDERBUFFER_RED_SIZE | GLenum | Yes| +| RENDERBUFFER_GREEN_SIZE | GLenum | Yes| +| RENDERBUFFER_BLUE_SIZE | GLenum | Yes| +| RENDERBUFFER_ALPHA_SIZE | GLenum | Yes| +| RENDERBUFFER_DEPTH_SIZE | GLenum | Yes| +| RENDERBUFFER_STENCIL_SIZE | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE | GLenum | Yes| +| COLOR_ATTACHMENT0 | GLenum | Yes| +| DEPTH_ATTACHMENT | GLenum | Yes| +| STENCIL_ATTACHMENT | GLenum | Yes| +| DEPTH_STENCIL_ATTACHMENT | GLenum | Yes| +| NONE | GLenum | Yes| +| FRAMEBUFFER_COMPLETE | GLenum | Yes| +| FRAMEBUFFER_INCOMPLETE_ATTACHMENT | GLenum | Yes| +| FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT | GLenum | Yes| +| FRAMEBUFFER_INCOMPLETE_DIMENSIONS | GLenum | Yes| +| FRAMEBUFFER_UNSUPPORTED | GLenum | Yes| +| FRAMEBUFFER_BINDING | GLenum | Yes| +| RENDERBUFFER_BINDING | GLenum | Yes| +| MAX_RENDERBUFFER_SIZE | GLenum | Yes| +| INVALID_FRAMEBUFFER_OPERATION | GLenum | Yes| +| UNPACK_FLIP_Y_WEBGL | GLenum | Yes| +| UNPACK_PREMULTIPLY_ALPHA_WEBGL | GLenum | Yes| +| CONTEXT_LOST_WEBGL | GLenum | Yes| +| UNPACK_COLORSPACE_CONVERSION_WEBGL | GLenum | Yes| +| BROWSER_DEFAULT_WEBGL | GLenum | Yes| +| canvas | HTMLCanvasElement \| OffscreenCanvas | Yes| +| drawingBufferWidth | GLsizei | Yes| +| drawingBufferHeight | GLsizei | Yes| ### Methods - | Method | Return Value Type | + | Method| Return Value Type| | -------- | -------- | | getContextAttributes() | WebGLContextAttributes \| null | | isContextLost() | boolean | @@ -562,7 +558,7 @@ WebGLRenderingContextBase WebGLRenderingContextOverloads - | Method | Return Value Type | + | Method| Return Value Type| | -------- | -------- | | bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum) | void | | bufferData(target: GLenum, data: BufferSource \| null, usage: GLenum) | void | diff --git a/en/application-dev/reference/apis/js-apis-webgl2.md b/en/application-dev/reference/apis/js-apis-webgl2.md index 9b94a14e3db63f0b935801631a926101cb859fef..330516d3259f9219cba1ade2189e53fee066941f 100644 --- a/en/application-dev/reference/apis/js-apis-webgl2.md +++ b/en/application-dev/reference/apis/js-apis-webgl2.md @@ -1,24 +1,15 @@ # webgl2 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** +> ![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'; -``` - - ## Invoking Method -Create a **<canvas>** component in the HML file. The following is an example: +Create a **** component in the HML file. The following is an example: ``` @@ -28,14 +19,14 @@ Create a **<canvas>** component in the HML file. The following is an examp ``` -Obtain the **<canvas>** component instance in the JS file. The following is an example: +Obtain the **** component instance in the JS file. The following is an example: ``` // Obtain the component instance. const el = this.$refs.canvas1; // Obtain the WebGL context from the component instance. -const gl = el.getContext('webgl'); +const gl = el.getContext('webgl2'); // Call the WebGL API. gl.clearColor(0.0, 0.0, 0.0, 1.0); ``` @@ -43,29 +34,33 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ## Type - **Table1** Type +**System capability**: SystemCapability.Graphic.Graphic2D.WebGL2 -| Name | Type | Description | -| -------- | -------- | -------- | -| GLenum | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| GLint64 | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| GLuint64 | number | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| Uint32List | array | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | + **Table 1** Type + +| Name| Type| +| -------- | -------- | +| GLenum | number | +| GLint64 | number | +| GLuint64 | number | +| Uint32List | array | ## Interface - **Table2** Interface +**System capability**: SystemCapability.Graphic.Graphic2D.WebGL2 -| Name | Description | -| -------- | -------- | -| [WebGL2RenderingContextBase](#webgl2renderingcontextbase) | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| [WebGL2RenderingContextOverloads](#webgl2renderingcontextoverloads) | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| WebGLQuery | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| WebGLSampler | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| WebGLSync | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| WebGLTransformFeedback | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | -| WebGLVertexArrayObject | **System capabilities**: SystemCapability.Graphic.Graphic2D.WebGL2 | + **Table 2** Interface + +| Name| +| -------- | +| [WebGL2RenderingContextBase](#webgl2renderingcontextbase) | +| [WebGL2RenderingContextOverloads](#webgl2renderingcontextoverloads) | +| WebGLQuery | +| WebGLSampler | +| WebGLSync | +| WebGLTransformFeedback | +| WebGLVertexArrayObject | ## WebGL2RenderingContextBase @@ -75,275 +70,275 @@ WebGL2RenderingContextBase ### Attributes - | Name | Type | Mandatory | + | Name| Type| Mandatory| | -------- | -------- | -------- | -| READ_BUFFER | GLenum | Yes | -| UNPACK_ROW_LENGTH | GLenum | Yes | -| UNPACK_SKIP_ROWS | GLenum | Yes | -| UNPACK_SKIP_PIXELS | GLenum | Yes | -| PACK_ROW_LENGTH | GLenum | Yes | -| PACK_SKIP_ROWS | GLenum | Yes | -| PACK_SKIP_PIXELS | GLenum | Yes | -| COLOR | GLenum | Yes | -| DEPTH | GLenum | Yes | -| STENCIL | GLenum | Yes | -| RED | GLenum | Yes | -| RGB8 | GLenum | Yes | -| RGBA8 | GLenum | Yes | -| RGB10_A2 | GLenum | Yes | -| TEXTURE_BINDING_3D | GLenum | Yes | -| UNPACK_SKIP_IMAGES | GLenum | Yes | -| UNPACK_IMAGE_HEIGHT | GLenum | Yes | -| TEXTURE_3D | GLenum | Yes | -| TEXTURE_WRAP_R | GLenum | Yes | -| MAX_3D_TEXTURE_SIZE | GLenum | Yes | -| UNSIGNED_INT_2_10_10_10_REV | GLenum | Yes | -| MAX_ELEMENTS_VERTICES | GLenum | Yes | -| MAX_ELEMENTS_INDICES | GLenum | Yes | -| TEXTURE_MIN_LOD | GLenum | Yes | -| TEXTURE_MAX_LOD | GLenum | Yes | -| TEXTURE_BASE_LEVEL | GLenum | Yes | -| TEXTURE_MAX_LEVEL | GLenum | Yes | -| MIN | GLenum | Yes | -| MAX | GLenum | Yes | -| DEPTH_COMPONENT24 | GLenum | Yes | -| MAX_TEXTURE_LOD_BIAS | GLenum | Yes | -| TEXTURE_COMPARE_MODE | GLenum | Yes | -| TEXTURE_COMPARE_FUNC | GLenum | Yes | -| CURRENT_QUERY | GLenum | Yes | -| QUERY_RESULT | GLenum | Yes | -| QUERY_RESULT_AVAILABLE | GLenum | Yes | -| STREAM_READ | GLenum | Yes | -| STREAM_COPY | GLenum | Yes | -| STATIC_READ | GLenum | Yes | -| STATIC_COPY | GLenum | Yes | -| DYNAMIC_READ | GLenum | Yes | -| DYNAMIC_COPY | GLenum | Yes | -| MAX_DRAW_BUFFERS | GLenum | Yes | -| DRAW_BUFFER0 | GLenum | Yes | -| DRAW_BUFFER1 | GLenum | Yes | -| DRAW_BUFFER2 | GLenum | Yes | -| DRAW_BUFFER3 | GLenum | Yes | -| DRAW_BUFFER4 | GLenum | Yes | -| DRAW_BUFFER5 | GLenum | Yes | -| DRAW_BUFFER6 | GLenum | Yes | -| DRAW_BUFFER7 | GLenum | Yes | -| DRAW_BUFFER8 | GLenum | Yes | -| DRAW_BUFFER9 | GLenum | Yes | -| DRAW_BUFFER10 | GLenum | Yes | -| DRAW_BUFFER11 | GLenum | Yes | -| DRAW_BUFFER12 | GLenum | Yes | -| DRAW_BUFFER13 | GLenum | Yes | -| DRAW_BUFFER14 | GLenum | Yes | -| DRAW_BUFFER15 | GLenum | Yes | -| MAX_FRAGMENT_UNIFORM_COMPONENTS | GLenum | Yes | -| MAX_VERTEX_UNIFORM_COMPONENTS | GLenum | Yes | -| SAMPLER_3D | GLenum | Yes | -| SAMPLER_2D_SHADOW | GLenum | Yes | -| FRAGMENT_SHADER_DERIVATIVE_HINT | GLenum | Yes | -| PIXEL_PACK_BUFFER | GLenum | Yes | -| PIXEL_UNPACK_BUFFER | GLenum | Yes | -| PIXEL_PACK_BUFFER_BINDING | GLenum | Yes | -| PIXEL_UNPACK_BUFFER_BINDING | GLenum | Yes | -| FLOAT_MAT2x3 | GLenum | Yes | -| FLOAT_MAT2x4 | GLenum | Yes | -| FLOAT_MAT3x2 | GLenum | Yes | -| FLOAT_MAT3x4 | GLenum | Yes | -| FLOAT_MAT4x2 | GLenum | Yes | -| FLOAT_MAT4x3 | GLenum | Yes | -| SRGB | GLenum | Yes | -| SRGB8 | GLenum | Yes | -| SRGB8_ALPHA8 | GLenum | Yes | -| COMPARE_REF_TO_TEXTURE | GLenum | Yes | -| RGBA32F | GLenum | Yes | -| RGB32F | GLenum | Yes | -| RGBA16F | GLenum | Yes | -| RGB16F | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_INTEGER | GLenum | Yes | -| MAX_ARRAY_TEXTURE_LAYERS | GLenum | Yes | -| MIN_PROGRAM_TEXEL_OFFSET | GLenum | Yes | -| MAX_PROGRAM_TEXEL_OFFSET | GLenum | Yes | -| MAX_VARYING_COMPONENTS | GLenum | Yes | -| TEXTURE_2D_ARRAY | GLenum | Yes | -| TEXTURE_BINDING_2D_ARRAY | GLenum | Yes | -| R11F_G11F_B10F | GLenum | Yes | -| UNSIGNED_INT_10F_11F_11F_REV | GLenum | Yes | -| RGB9_E5 | GLenum | Yes | -| UNSIGNED_INT_5_9_9_9_REV | GLenum | Yes | -| TRANSFORM_FEEDBACK_BUFFER_MODE | GLenum | Yes | -| MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS | GLenum | Yes | -| TRANSFORM_FEEDBACK_VARYINGS | GLenum | Yes | -| TRANSFORM_FEEDBACK_BUFFER_START | GLenum | Yes | -| TRANSFORM_FEEDBACK_BUFFER_SIZE | GLenum | Yes | -| TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN | GLenum | Yes | -| RASTERIZER_DISCARD | GLenum | Yes | -| MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS | GLenum | Yes | -| MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS | GLenum | Yes | -| INTERLEAVED_ATTRIBS | GLenum | Yes | -| SEPARATE_ATTRIBS | GLenum | Yes | -| TRANSFORM_FEEDBACK_BUFFER | GLenum | Yes | -| TRANSFORM_FEEDBACK_BUFFER_BINDING | GLenum | Yes | -| RGBA32UI | GLenum | Yes | -| RGB32UI | GLenum | Yes | -| RGBA16UI | GLenum | Yes | -| RGB16UI | GLenum | Yes | -| RGBA8UI | GLenum | Yes | -| RGB8UI | GLenum | Yes | -| RGBA32I | GLenum | Yes | -| RGB32I | GLenum | Yes | -| RGBA16I | GLenum | Yes | -| RGB16I | GLenum | Yes | -| RGBA8I | GLenum | Yes | -| RGB8I | GLenum | Yes | -| RED_INTEGER | GLenum | Yes | -| RGB_INTEGER | GLenum | Yes | -| RGBA_INTEGER | GLenum | Yes | -| SAMPLER_2D_ARRAY | GLenum | Yes | -| SAMPLER_2D_ARRAY_SHADOW | GLenum | Yes | -| SAMPLER_CUBE_SHADOW | GLenum | Yes | -| UNSIGNED_INT_VEC2 | GLenum | Yes | -| UNSIGNED_INT_VEC3 | GLenum | Yes | -| UNSIGNED_INT_VEC4 | GLenum | Yes | -| INT_SAMPLER_2D | GLenum | Yes | -| INT_SAMPLER_3D | GLenum | Yes | -| INT_SAMPLER_CUBE | GLenum | Yes | -| INT_SAMPLER_2D_ARRAY | GLenum | Yes | -| UNSIGNED_INT_SAMPLER_2D | GLenum | Yes | -| UNSIGNED_INT_SAMPLER_3D | GLenum | Yes | -| UNSIGNED_INT_SAMPLER_CUBE | GLenum | Yes | -| UNSIGNED_INT_SAMPLER_2D_ARRAY | GLenum | Yes | -| DEPTH_COMPONENT32F | GLenum | Yes | -| DEPTH32F_STENCIL8 | GLenum | Yes | -| FLOAT_32_UNSIGNED_INT_24_8_REV | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_RED_SIZE | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_GREEN_SIZE | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_BLUE_SIZE | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE | GLenum | Yes | -| FRAMEBUFFER_DEFAULT | GLenum | Yes | -| UNSIGNED_INT_24_8 | GLenum | Yes | -| DEPTH24_STENCIL8 | GLenum | Yes | -| UNSIGNED_NORMALIZED | GLenum | Yes | -| DRAW_FRAMEBUFFER_BINDING | GLenum | Yes | -| READ_FRAMEBUFFER | GLenum | Yes | -| DRAW_FRAMEBUFFER | GLenum | Yes | -| READ_FRAMEBUFFER_BINDING | GLenum | Yes | -| RENDERBUFFER_SAMPLES | GLenum | Yes | -| FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER | GLenum | Yes | -| MAX_COLOR_ATTACHMENTS | GLenum | Yes | -| COLOR_ATTACHMENT1 | GLenum | Yes | -| COLOR_ATTACHMENT2 | GLenum | Yes | -| COLOR_ATTACHMENT3 | GLenum | Yes | -| COLOR_ATTACHMENT4 | GLenum | Yes | -| COLOR_ATTACHMENT5 | GLenum | Yes | -| COLOR_ATTACHMENT6 | GLenum | Yes | -| COLOR_ATTACHMENT7 | GLenum | Yes | -| COLOR_ATTACHMENT8 | GLenum | Yes | -| COLOR_ATTACHMENT9 | GLenum | Yes | -| COLOR_ATTACHMENT10 | GLenum | Yes | -| COLOR_ATTACHMENT11 | GLenum | Yes | -| COLOR_ATTACHMENT12 | GLenum | Yes | -| COLOR_ATTACHMENT13 | GLenum | Yes | -| COLOR_ATTACHMENT14 | GLenum | Yes | -| COLOR_ATTACHMENT15 | GLenum | Yes | -| FRAMEBUFFER_INCOMPLETE_MULTISAMPLE | GLenum | Yes | -| MAX_SAMPLES | GLenum | Yes | -| HALF_FLOAT | GLenum | Yes | -| RG | GLenum | Yes | -| RG_INTEGER | GLenum | Yes | -| R8 | GLenum | Yes | -| RG8 | GLenum | Yes | -| R16F | GLenum | Yes | -| R32F | GLenum | Yes | -| RG16F | GLenum | Yes | -| RG32F | GLenum | Yes | -| R8I | GLenum | Yes | -| R8UI | GLenum | Yes | -| R16I | GLenum | Yes | -| R16UI | GLenum | Yes | -| R32I | GLenum | Yes | -| R32UI | GLenum | Yes | -| RG8I | GLenum | Yes | -| RG8UI | GLenum | Yes | -| RG16I | GLenum | Yes | -| RG16UI | GLenum | Yes | -| RG32I | GLenum | Yes | -| RG32UI | GLenum | Yes | -| VERTEX_ARRAY_BINDING | GLenum | Yes | -| R8_SNORM | GLenum | Yes | -| RG8_SNORM | GLenum | Yes | -| RGB8_SNORM | GLenum | Yes | -| SIGNED_NORMALIZED | GLenum | Yes | -| COPY_READ_BUFFER | GLenum | Yes | -| COPY_WRITE_BUFFER | GLenum | Yes | -| COPY_READ_BUFFER_BINDING | GLenum | Yes | -| COPY_WRITE_BUFFER_BINDING | GLenum | Yes | -| UNIFORM_BUFFER | GLenum | Yes | -| UNIFORM_BUFFER_BINDING | GLenum | Yes | -| UNIFORM_BUFFER_START | GLenum | Yes | -| UNIFORM_BUFFER_SIZE | GLenum | Yes | -| MAX_VERTEX_UNIFORM_BLOCKS | GLenum | Yes | -| MAX_FRAGMENT_UNIFORM_BLOCKS | GLenum | Yes | -| MAX_COMBINED_UNIFORM_BLOCKS | GLenum | Yes | -| MAX_UNIFORM_BUFFER_BINDINGS | GLenum | Yes | -| MAX_UNIFORM_BLOCK_SIZE | GLenum | Yes | -| MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS | GLenum | Yes | -| MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS | GLenum | Yes | -| UNIFORM_BUFFER_OFFSET_ALIGNMENT | GLenum | Yes | -| ACTIVE_UNIFORM_BLOCKS | GLenum | Yes | -| UNIFORM_TYPE | GLenum | Yes | -| UNIFORM_SIZE | GLenum | Yes | -| UNIFORM_BLOCK_INDEX | GLenum | Yes | -| UNIFORM_OFFSET | GLenum | Yes | -| UNIFORM_ARRAY_STRIDE | GLenum | Yes | -| UNIFORM_MATRIX_STRIDE | GLenum | Yes | -| UNIFORM_IS_ROW_MAJOR | GLenum | Yes | -| UNIFORM_BLOCK_BINDING | GLenum | Yes | -| UNIFORM_BLOCK_DATA_SIZE | GLenum | Yes | -| UNIFORM_BLOCK_ACTIVE_UNIFORMS | GLenum | Yes | -| UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES | GLenum | Yes | -| UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER | GLenum | Yes | -| UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER | GLenum | Yes | -| INVALID_INDEX | GLenum | Yes | -| MAX_VERTEX_OUTPUT_COMPONENTS | GLenum | Yes | -| MAX_FRAGMENT_INPUT_COMPONENTS | GLenum | Yes | -| MAX_SERVER_WAIT_TIMEOUT | GLenum | Yes | -| OBJECT_TYPE | GLenum | Yes | -| SYNC_CONDITION | GLenum | Yes | -| SYNC_STATUS | GLenum | Yes | -| SYNC_FLAGS | GLenum | Yes | -| SYNC_FENCE | GLenum | Yes | -| SYNC_GPU_COMMANDS_COMPLETE | GLenum | Yes | -| UNSIGNALED | GLenum | Yes | -| SIGNALED | GLenum | Yes | -| ALREADY_SIGNALED | GLenum | Yes | -| TIMEOUT_EXPIRED | GLenum | Yes | -| CONDITION_SATISFIED | GLenum | Yes | -| WAIT_FAILED | GLenum | Yes | -| SYNC_FLUSH_COMMANDS_BIT | GLenum | Yes | -| VERTEX_ATTRIB_ARRAY_DIVISOR | GLenum | Yes | -| ANY_SAMPLES_PASSED | GLenum | Yes | -| ANY_SAMPLES_PASSED_CONSERVATIVE | GLenum | Yes | -| SAMPLER_BINDING | GLenum | Yes | -| RGB10_A2UI | GLenum | Yes | -| INT_2_10_10_10_REV | GLenum | Yes | -| TRANSFORM_FEEDBACK | GLenum | Yes | -| TRANSFORM_FEEDBACK_PAUSED | GLenum | Yes | -| TRANSFORM_FEEDBACK_ACTIVE | GLenum | Yes | -| TRANSFORM_FEEDBACK_BINDING | GLenum | Yes | -| TEXTURE_IMMUTABLE_FORMAT | GLenum | Yes | -| MAX_ELEMENT_INDEX | GLenum | Yes | -| TEXTURE_IMMUTABLE_LEVELS | GLenum | Yes | -| TIMEOUT_IGNORED | GLint64 | Yes | -| MAX_CLIENT_WAIT_TIMEOUT_WEBGL | GLenum | Yes | +| READ_BUFFER | GLenum | Yes| +| UNPACK_ROW_LENGTH | GLenum | Yes| +| UNPACK_SKIP_ROWS | GLenum | Yes| +| UNPACK_SKIP_PIXELS | GLenum | Yes| +| PACK_ROW_LENGTH | GLenum | Yes| +| PACK_SKIP_ROWS | GLenum | Yes| +| PACK_SKIP_PIXELS | GLenum | Yes| +| COLOR | GLenum | Yes| +| DEPTH | GLenum | Yes| +| STENCIL | GLenum | Yes| +| RED | GLenum | Yes| +| RGB8 | GLenum | Yes| +| RGBA8 | GLenum | Yes| +| RGB10_A2 | GLenum | Yes| +| TEXTURE_BINDING_3D | GLenum | Yes| +| UNPACK_SKIP_IMAGES | GLenum | Yes| +| UNPACK_IMAGE_HEIGHT | GLenum | Yes| +| TEXTURE_3D | GLenum | Yes| +| TEXTURE_WRAP_R | GLenum | Yes| +| MAX_3D_TEXTURE_SIZE | GLenum | Yes| +| UNSIGNED_INT_2_10_10_10_REV | GLenum | Yes| +| MAX_ELEMENTS_VERTICES | GLenum | Yes| +| MAX_ELEMENTS_INDICES | GLenum | Yes| +| TEXTURE_MIN_LOD | GLenum | Yes| +| TEXTURE_MAX_LOD | GLenum | Yes| +| TEXTURE_BASE_LEVEL | GLenum | Yes| +| TEXTURE_MAX_LEVEL | GLenum | Yes| +| MIN | GLenum | Yes| +| MAX | GLenum | Yes| +| DEPTH_COMPONENT24 | GLenum | Yes| +| MAX_TEXTURE_LOD_BIAS | GLenum | Yes| +| TEXTURE_COMPARE_MODE | GLenum | Yes| +| TEXTURE_COMPARE_FUNC | GLenum | Yes| +| CURRENT_QUERY | GLenum | Yes| +| QUERY_RESULT | GLenum | Yes| +| QUERY_RESULT_AVAILABLE | GLenum | Yes| +| STREAM_READ | GLenum | Yes| +| STREAM_COPY | GLenum | Yes| +| STATIC_READ | GLenum | Yes| +| STATIC_COPY | GLenum | Yes| +| DYNAMIC_READ | GLenum | Yes| +| DYNAMIC_COPY | GLenum | Yes| +| MAX_DRAW_BUFFERS | GLenum | Yes| +| DRAW_BUFFER0 | GLenum | Yes| +| DRAW_BUFFER1 | GLenum | Yes| +| DRAW_BUFFER2 | GLenum | Yes| +| DRAW_BUFFER3 | GLenum | Yes| +| DRAW_BUFFER4 | GLenum | Yes| +| DRAW_BUFFER5 | GLenum | Yes| +| DRAW_BUFFER6 | GLenum | Yes| +| DRAW_BUFFER7 | GLenum | Yes| +| DRAW_BUFFER8 | GLenum | Yes| +| DRAW_BUFFER9 | GLenum | Yes| +| DRAW_BUFFER10 | GLenum | Yes| +| DRAW_BUFFER11 | GLenum | Yes| +| DRAW_BUFFER12 | GLenum | Yes| +| DRAW_BUFFER13 | GLenum | Yes| +| DRAW_BUFFER14 | GLenum | Yes| +| DRAW_BUFFER15 | GLenum | Yes| +| MAX_FRAGMENT_UNIFORM_COMPONENTS | GLenum | Yes| +| MAX_VERTEX_UNIFORM_COMPONENTS | GLenum | Yes| +| SAMPLER_3D | GLenum | Yes| +| SAMPLER_2D_SHADOW | GLenum | Yes| +| FRAGMENT_SHADER_DERIVATIVE_HINT | GLenum | Yes| +| PIXEL_PACK_BUFFER | GLenum | Yes| +| PIXEL_UNPACK_BUFFER | GLenum | Yes| +| PIXEL_PACK_BUFFER_BINDING | GLenum | Yes| +| PIXEL_UNPACK_BUFFER_BINDING | GLenum | Yes| +| FLOAT_MAT2x3 | GLenum | Yes| +| FLOAT_MAT2x4 | GLenum | Yes| +| FLOAT_MAT3x2 | GLenum | Yes| +| FLOAT_MAT3x4 | GLenum | Yes| +| FLOAT_MAT4x2 | GLenum | Yes| +| FLOAT_MAT4x3 | GLenum | Yes| +| SRGB | GLenum | Yes| +| SRGB8 | GLenum | Yes| +| SRGB8_ALPHA8 | GLenum | Yes| +| COMPARE_REF_TO_TEXTURE | GLenum | Yes| +| RGBA32F | GLenum | Yes| +| RGB32F | GLenum | Yes| +| RGBA16F | GLenum | Yes| +| RGB16F | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_INTEGER | GLenum | Yes| +| MAX_ARRAY_TEXTURE_LAYERS | GLenum | Yes| +| MIN_PROGRAM_TEXEL_OFFSET | GLenum | Yes| +| MAX_PROGRAM_TEXEL_OFFSET | GLenum | Yes| +| MAX_VARYING_COMPONENTS | GLenum | Yes| +| TEXTURE_2D_ARRAY | GLenum | Yes| +| TEXTURE_BINDING_2D_ARRAY | GLenum | Yes| +| R11F_G11F_B10F | GLenum | Yes| +| UNSIGNED_INT_10F_11F_11F_REV | GLenum | Yes| +| RGB9_E5 | GLenum | Yes| +| UNSIGNED_INT_5_9_9_9_REV | GLenum | Yes| +| TRANSFORM_FEEDBACK_BUFFER_MODE | GLenum | Yes| +| MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS | GLenum | Yes| +| TRANSFORM_FEEDBACK_VARYINGS | GLenum | Yes| +| TRANSFORM_FEEDBACK_BUFFER_START | GLenum | Yes| +| TRANSFORM_FEEDBACK_BUFFER_SIZE | GLenum | Yes| +| TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN | GLenum | Yes| +| RASTERIZER_DISCARD | GLenum | Yes| +| MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS | GLenum | Yes| +| MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS | GLenum | Yes| +| INTERLEAVED_ATTRIBS | GLenum | Yes| +| SEPARATE_ATTRIBS | GLenum | Yes| +| TRANSFORM_FEEDBACK_BUFFER | GLenum | Yes| +| TRANSFORM_FEEDBACK_BUFFER_BINDING | GLenum | Yes| +| RGBA32UI | GLenum | Yes| +| RGB32UI | GLenum | Yes| +| RGBA16UI | GLenum | Yes| +| RGB16UI | GLenum | Yes| +| RGBA8UI | GLenum | Yes| +| RGB8UI | GLenum | Yes| +| RGBA32I | GLenum | Yes| +| RGB32I | GLenum | Yes| +| RGBA16I | GLenum | Yes| +| RGB16I | GLenum | Yes| +| RGBA8I | GLenum | Yes| +| RGB8I | GLenum | Yes| +| RED_INTEGER | GLenum | Yes| +| RGB_INTEGER | GLenum | Yes| +| RGBA_INTEGER | GLenum | Yes| +| SAMPLER_2D_ARRAY | GLenum | Yes| +| SAMPLER_2D_ARRAY_SHADOW | GLenum | Yes| +| SAMPLER_CUBE_SHADOW | GLenum | Yes| +| UNSIGNED_INT_VEC2 | GLenum | Yes| +| UNSIGNED_INT_VEC3 | GLenum | Yes| +| UNSIGNED_INT_VEC4 | GLenum | Yes| +| INT_SAMPLER_2D | GLenum | Yes| +| INT_SAMPLER_3D | GLenum | Yes| +| INT_SAMPLER_CUBE | GLenum | Yes| +| INT_SAMPLER_2D_ARRAY | GLenum | Yes| +| UNSIGNED_INT_SAMPLER_2D | GLenum | Yes| +| UNSIGNED_INT_SAMPLER_3D | GLenum | Yes| +| UNSIGNED_INT_SAMPLER_CUBE | GLenum | Yes| +| UNSIGNED_INT_SAMPLER_2D_ARRAY | GLenum | Yes| +| DEPTH_COMPONENT32F | GLenum | Yes| +| DEPTH32F_STENCIL8 | GLenum | Yes| +| FLOAT_32_UNSIGNED_INT_24_8_REV | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_RED_SIZE | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_GREEN_SIZE | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_BLUE_SIZE | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE | GLenum | Yes| +| FRAMEBUFFER_DEFAULT | GLenum | Yes| +| UNSIGNED_INT_24_8 | GLenum | Yes| +| DEPTH24_STENCIL8 | GLenum | Yes| +| UNSIGNED_NORMALIZED | GLenum | Yes| +| DRAW_FRAMEBUFFER_BINDING | GLenum | Yes| +| READ_FRAMEBUFFER | GLenum | Yes| +| DRAW_FRAMEBUFFER | GLenum | Yes| +| READ_FRAMEBUFFER_BINDING | GLenum | Yes| +| RENDERBUFFER_SAMPLES | GLenum | Yes| +| FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER | GLenum | Yes| +| MAX_COLOR_ATTACHMENTS | GLenum | Yes| +| COLOR_ATTACHMENT1 | GLenum | Yes| +| COLOR_ATTACHMENT2 | GLenum | Yes| +| COLOR_ATTACHMENT3 | GLenum | Yes| +| COLOR_ATTACHMENT4 | GLenum | Yes| +| COLOR_ATTACHMENT5 | GLenum | Yes| +| COLOR_ATTACHMENT6 | GLenum | Yes| +| COLOR_ATTACHMENT7 | GLenum | Yes| +| COLOR_ATTACHMENT8 | GLenum | Yes| +| COLOR_ATTACHMENT9 | GLenum | Yes| +| COLOR_ATTACHMENT10 | GLenum | Yes| +| COLOR_ATTACHMENT11 | GLenum | Yes| +| COLOR_ATTACHMENT12 | GLenum | Yes| +| COLOR_ATTACHMENT13 | GLenum | Yes| +| COLOR_ATTACHMENT14 | GLenum | Yes| +| COLOR_ATTACHMENT15 | GLenum | Yes| +| FRAMEBUFFER_INCOMPLETE_MULTISAMPLE | GLenum | Yes| +| MAX_SAMPLES | GLenum | Yes| +| HALF_FLOAT | GLenum | Yes| +| RG | GLenum | Yes| +| RG_INTEGER | GLenum | Yes| +| R8 | GLenum | Yes| +| RG8 | GLenum | Yes| +| R16F | GLenum | Yes| +| R32F | GLenum | Yes| +| RG16F | GLenum | Yes| +| RG32F | GLenum | Yes| +| R8I | GLenum | Yes| +| R8UI | GLenum | Yes| +| R16I | GLenum | Yes| +| R16UI | GLenum | Yes| +| R32I | GLenum | Yes| +| R32UI | GLenum | Yes| +| RG8I | GLenum | Yes| +| RG8UI | GLenum | Yes| +| RG16I | GLenum | Yes| +| RG16UI | GLenum | Yes| +| RG32I | GLenum | Yes| +| RG32UI | GLenum | Yes| +| VERTEX_ARRAY_BINDING | GLenum | Yes| +| R8_SNORM | GLenum | Yes| +| RG8_SNORM | GLenum | Yes| +| RGB8_SNORM | GLenum | Yes| +| SIGNED_NORMALIZED | GLenum | Yes| +| COPY_READ_BUFFER | GLenum | Yes| +| COPY_WRITE_BUFFER | GLenum | Yes| +| COPY_READ_BUFFER_BINDING | GLenum | Yes| +| COPY_WRITE_BUFFER_BINDING | GLenum | Yes| +| UNIFORM_BUFFER | GLenum | Yes| +| UNIFORM_BUFFER_BINDING | GLenum | Yes| +| UNIFORM_BUFFER_START | GLenum | Yes| +| UNIFORM_BUFFER_SIZE | GLenum | Yes| +| MAX_VERTEX_UNIFORM_BLOCKS | GLenum | Yes| +| MAX_FRAGMENT_UNIFORM_BLOCKS | GLenum | Yes| +| MAX_COMBINED_UNIFORM_BLOCKS | GLenum | Yes| +| MAX_UNIFORM_BUFFER_BINDINGS | GLenum | Yes| +| MAX_UNIFORM_BLOCK_SIZE | GLenum | Yes| +| MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS | GLenum | Yes| +| MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS | GLenum | Yes| +| UNIFORM_BUFFER_OFFSET_ALIGNMENT | GLenum | Yes| +| ACTIVE_UNIFORM_BLOCKS | GLenum | Yes| +| UNIFORM_TYPE | GLenum | Yes| +| UNIFORM_SIZE | GLenum | Yes| +| UNIFORM_BLOCK_INDEX | GLenum | Yes| +| UNIFORM_OFFSET | GLenum | Yes| +| UNIFORM_ARRAY_STRIDE | GLenum | Yes| +| UNIFORM_MATRIX_STRIDE | GLenum | Yes| +| UNIFORM_IS_ROW_MAJOR | GLenum | Yes| +| UNIFORM_BLOCK_BINDING | GLenum | Yes| +| UNIFORM_BLOCK_DATA_SIZE | GLenum | Yes| +| UNIFORM_BLOCK_ACTIVE_UNIFORMS | GLenum | Yes| +| UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES | GLenum | Yes| +| UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER | GLenum | Yes| +| UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER | GLenum | Yes| +| INVALID_INDEX | GLenum | Yes| +| MAX_VERTEX_OUTPUT_COMPONENTS | GLenum | Yes| +| MAX_FRAGMENT_INPUT_COMPONENTS | GLenum | Yes| +| MAX_SERVER_WAIT_TIMEOUT | GLenum | Yes| +| OBJECT_TYPE | GLenum | Yes| +| SYNC_CONDITION | GLenum | Yes| +| SYNC_STATUS | GLenum | Yes| +| SYNC_FLAGS | GLenum | Yes| +| SYNC_FENCE | GLenum | Yes| +| SYNC_GPU_COMMANDS_COMPLETE | GLenum | Yes| +| UNSIGNALED | GLenum | Yes| +| SIGNALED | GLenum | Yes| +| ALREADY_SIGNALED | GLenum | Yes| +| TIMEOUT_EXPIRED | GLenum | Yes| +| CONDITION_SATISFIED | GLenum | Yes| +| WAIT_FAILED | GLenum | Yes| +| SYNC_FLUSH_COMMANDS_BIT | GLenum | Yes| +| VERTEX_ATTRIB_ARRAY_DIVISOR | GLenum | Yes| +| ANY_SAMPLES_PASSED | GLenum | Yes| +| ANY_SAMPLES_PASSED_CONSERVATIVE | GLenum | Yes| +| SAMPLER_BINDING | GLenum | Yes| +| RGB10_A2UI | GLenum | Yes| +| INT_2_10_10_10_REV | GLenum | Yes| +| TRANSFORM_FEEDBACK | GLenum | Yes| +| TRANSFORM_FEEDBACK_PAUSED | GLenum | Yes| +| TRANSFORM_FEEDBACK_ACTIVE | GLenum | Yes| +| TRANSFORM_FEEDBACK_BINDING | GLenum | Yes| +| TEXTURE_IMMUTABLE_FORMAT | GLenum | Yes| +| MAX_ELEMENT_INDEX | GLenum | Yes| +| TEXTURE_IMMUTABLE_LEVELS | GLenum | Yes| +| TIMEOUT_IGNORED | GLint64 | Yes| +| MAX_CLIENT_WAIT_TIMEOUT_WEBGL | GLenum | Yes| ### Methods - | Method | Return Value Type | + | Method| Return Value Type| | -------- | -------- | | copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr) | void | | getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint) | void | @@ -446,7 +441,7 @@ WebGL2RenderingContextBase WebGL2RenderingContextOverloads - | Method | Return Value Type | + | Method| Return Value Type| | -------- | -------- | | bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum) | void | | bufferData(target: GLenum, srcData: BufferSource \| null, usage: GLenum) | void |