Interface WebGL2RenderingContextOverloads

    interface WebGL2RenderingContextOverloads {
        bufferData(target: number, size: number, usage: number): void;
        bufferData(target: number, srcData: AllowSharedBufferSource, usage: number): void;
        bufferData(target: number, srcData: ArrayBufferView, usage: number, srcOffset: number, length?: number): void;
        bufferSubData(target: number, dstByteOffset: number, srcData: AllowSharedBufferSource): void;
        bufferSubData(target: number, dstByteOffset: number, srcData: ArrayBufferView, srcOffset: number, length?: number): void;
        compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, imageSize: number, offset: number): void;
        compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: number): void;
        compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, imageSize: number, offset: number): void;
        compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: number): void;
        readPixels(x: number, y: number, width: number, height: number, format: number, type: number, dstData: ArrayBufferView): void;
        readPixels(x: number, y: number, width: number, height: number, format: number, type: number, offset: number): void;
        readPixels(x: number, y: number, width: number, height: number, format: number, type: number, dstData: ArrayBufferView, dstOffset: number): void;
        texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels: ArrayBufferView): void;
        texImage2D(target: number, level: number, internalformat: number, format: number, type: number, source: TexImageSource): void;
        texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pboOffset: number): void;
        texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, source: TexImageSource): void;
        texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, srcData: ArrayBufferView, srcOffset: number): void;
        texImage2D(target: number, level: number, internalformat: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
        texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
        texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void;
        texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, source: TexImageSource): void;
        texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pboOffset: number): void;
        texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, source: TexImageSource): void;
        texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, srcData: ArrayBufferView, srcOffset: number): void;
        texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
        texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
        uniform1fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
        uniform1fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniform1iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
        uniform1iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniform2fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
        uniform2fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniform2iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
        uniform2iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniform3fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
        uniform3fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniform3iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
        uniform3iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniform4fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
        uniform4fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniform4iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
        uniform4iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
        uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
        uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
        uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
        uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
    }
    Hierarchy

    Methods

    • Parameters

      • target: number
      • size: number
      • usage: number

      Returns void

    • Parameters

      Returns void

    • Parameters

      • target: number
      • srcData: ArrayBufferView
      • usage: number
      • srcOffset: number
      • Optionallength: number

      Returns void

    • Parameters

      Returns void

    • Parameters

      • target: number
      • dstByteOffset: number
      • srcData: ArrayBufferView
      • srcOffset: number
      • Optionallength: number

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • imageSize: number
      • offset: number

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • srcData: ArrayBufferView
      • OptionalsrcOffset: number
      • OptionalsrcLengthOverride: number

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • imageSize: number
      • offset: number

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • srcData: ArrayBufferView
      • OptionalsrcOffset: number
      • OptionalsrcLengthOverride: number

      Returns void

    • Parameters

      • x: number
      • y: number
      • width: number
      • height: number
      • format: number
      • type: number
      • dstData: ArrayBufferView

      Returns void

    • Parameters

      • x: number
      • y: number
      • width: number
      • height: number
      • format: number
      • type: number
      • offset: number

      Returns void

    • Parameters

      • x: number
      • y: number
      • width: number
      • height: number
      • format: number
      • type: number
      • dstData: ArrayBufferView
      • dstOffset: number

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • format: number
      • type: number
      • pixels: ArrayBufferView

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • format: number
      • type: number
      • source: TexImageSource

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • format: number
      • type: number
      • pboOffset: number

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • format: number
      • type: number
      • source: TexImageSource

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • format: number
      • type: number
      • srcData: ArrayBufferView
      • srcOffset: number

      Returns void

    • Parameters

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • format: number
      • type: number
      • source: TexImageSourceWebCodecs

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • type: number
      • pixels: ArrayBufferView

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • format: number
      • type: number
      • source: TexImageSource

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • type: number
      • pboOffset: number

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • type: number
      • source: TexImageSource

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • type: number
      • srcData: ArrayBufferView
      • srcOffset: number

      Returns void

    • Parameters

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • type: number
      • source: TexImageSourceWebCodecs

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void