Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ArrayBufferView typedef #17161

Merged
merged 7 commits into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4713,7 +4713,7 @@
/en-US/docs/JavaScript/Strict_mode /en-US/docs/Web/JavaScript/Reference/Strict_mode
/en-US/docs/JavaScript/Typed_arrays /en-US/docs/Web/JavaScript/Typed_arrays
/en-US/docs/JavaScript/Typed_arrays/ArrayBuffer /en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
/en-US/docs/JavaScript/Typed_arrays/ArrayBufferView /en-US/docs/Web/API/ArrayBufferView
/en-US/docs/JavaScript/Typed_arrays/ArrayBufferView /en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
/en-US/docs/JavaScript/Typed_arrays/DataView /en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
/en-US/docs/JavaScript/Typed_arrays/Float32Array /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
/en-US/docs/JavaScript/Typed_arrays/Float64Array /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array
Expand Down Expand Up @@ -5158,7 +5158,7 @@
/en-US/docs/JavaScript_templates /en-US/docs/Web/JavaScript/Reference/Template_literals
/en-US/docs/JavaScript_typed_arrays /en-US/docs/Web/JavaScript/Typed_arrays
/en-US/docs/JavaScript_typed_arrays/ArrayBuffer /en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
/en-US/docs/JavaScript_typed_arrays/ArrayBufferView /en-US/docs/Web/API/ArrayBufferView
/en-US/docs/JavaScript_typed_arrays/ArrayBufferView /en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
/en-US/docs/JavaScript_typed_arrays/DataView /en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
/en-US/docs/JavaScript_typed_arrays/Float32Array /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
/en-US/docs/JavaScript_typed_arrays/Float64Array /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array
Expand Down Expand Up @@ -7343,6 +7343,7 @@
/en-US/docs/Web/API/AnimationTimingEffectProperties/iterations /en-US/docs/Web/API/KeyframeEffect/KeyframeEffect
/en-US/docs/Web/API/Apps.mgmt.addEventListener /en-US/docs/Web/API/EventTarget/addEventListener
/en-US/docs/Web/API/Apps.mgmt.removeEventListener /en-US/docs/Web/API/EventTarget/removeEventListener
/en-US/docs/Web/API/ArrayBufferView /en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
/en-US/docs/Web/API/AudioBuffer.copyFromChannel /en-US/docs/Web/API/AudioBuffer/copyFromChannel
/en-US/docs/Web/API/AudioBuffer.copyToChannel /en-US/docs/Web/API/AudioBuffer/copyToChannel
/en-US/docs/Web/API/AudioBuffer.duration /en-US/docs/Web/API/AudioBuffer/duration
Expand Down Expand Up @@ -12028,7 +12029,7 @@
/en-US/docs/Web/JavaScript/The_performance_hazards_of__[[Prototype]]_mutation /en-US/docs/Web/JavaScript/The_performance_hazards_of_prototype_mutation
/en-US/docs/Web/JavaScript/Tutorials /en-US/docs/Web/JavaScript
/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer /en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView /en-US/docs/Web/API/ArrayBufferView
/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView /en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
/en-US/docs/Web/JavaScript/Typed_arrays/DataView /en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
/en-US/docs/Web/JavaScript/Typed_arrays/Float32Array /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
/en-US/docs/Web/JavaScript/Typed_arrays/Float64Array /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array
Expand Down
12 changes: 0 additions & 12 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -24760,18 +24760,6 @@
"chrisdavidmills"
]
},
"Web/API/ArrayBufferView": {
"modified": "2019-10-01T12:15:40.895Z",
"contributors": [
"aduh95",
"yegao",
"mfluehr",
"TimothyGu",
"Jeremie",
"fscholz",
"teoli"
]
},
"Web/API/Attr": {
"modified": "2020-10-15T21:10:30.867Z",
"contributors": [
Expand Down
35 changes: 0 additions & 35 deletions files/en-us/web/api/arraybufferview/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion files/en-us/web/api/beacon_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For more details about the motivation for and usage of this API, see the documen

This API defines a single method: {{domxref("navigator.sendBeacon()")}}.

The method takes two arguments, the URL and the data to send in the request. The data argument is optional and its type may be an {{domxref("ArrayBufferView")}}, {{domxref("Blob")}}, string, or {{domxref("FormData")}}. If the browser successfully queues the request for delivery, the method returns "`true`"; otherwise, it returns "`false`".
The method takes two arguments, the URL and the data to send in the request. The data argument is optional and its type may be a {{jsxref("TypedArray")}}, a {{jsxref("DataView")}}, a {{domxref("Blob")}}, a string literal or object, or a {{domxref("FormData")}} object. If the browser successfully queues the request for delivery, the method returns "`true`"; otherwise, it returns "`false`".

## Specifications

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/blob/blob/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ new Blob(array, options)
### Parameters

- `array`
- : An {{jsxref("Array")}} of {{jsxref("ArrayBuffer")}}, {{domxref("ArrayBufferView")}},
{{domxref("Blob")}}, string objects, or a mix of any of such
- : An {{jsxref("Array")}} of {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}}, a {{jsxref("DataView")}},
a {{domxref("Blob")}}, string objects, or a mix of any of such
objects, that will be put inside the {{domxref("Blob")}}.
Note that strings objects here are encoded as UTF-8, unlike the usual JS UTF-16 strings.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/buffersource/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec-urls: https://webidl.spec.whatwg.org/#common-BufferSource
---
{{APIRef}}

**`BufferSource`** is a typedef used to represent objects that are either themselves an {{jsxref("ArrayBuffer")}}, or which are a {{jsxref("TypedArray")}} providing an {{domxref("ArrayBufferView")}}.
**`BufferSource`** is a typedef used to represent objects that are either themselves an {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}}, or a {{jsxref("DataView")}}.

This is a helper type to simplify the specification. It isn't an interface and there are no objects implementing it.

Expand Down
8 changes: 5 additions & 3 deletions files/en-us/web/api/fetch_api/using_fetch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,11 @@ The {{domxref("Response.Response","Response()")}} constructor takes two optional
Both requests and responses may contain body data. A body is an instance of any of the following types:

- {{jsxref("ArrayBuffer")}}
- {{domxref("ArrayBufferView")}} (Uint8Array and friends)
- {{domxref("Blob")}}/{{domxref("File")}}
- string
- {{jsxref("TypedArray")}} (Uint8Array and friends)
- {{jsxref("DataView")}}
- {{domxref("Blob")}}
- {{domxref("File")}}
- {{jsxref("String")}}, or a string literal
- {{domxref("URLSearchParams")}}
- {{domxref("FormData")}}

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/file/file/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ new File(bits, name, options)
### Parameters

- `bits`
- : An {{jsxref("Array")}} of {{jsxref("ArrayBuffer")}}, {{domxref("ArrayBufferView")}},
{{domxref("Blob")}}, string objects, or a mix of any of such
- : An {{jsxref("Array")}} of {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}}, a {{jsxref("DataView")}},
a {{domxref("Blob")}}, string literals or objects, or a mix of any of such
objects, that will be put inside the {{domxref("File")}}.
Note that strings objects here are encoded as UTF-8, unlike the usual JS UTF-16 strings.
- `name`
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/navigator/sendbeacon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ sendBeacon(url, data)
- `url`
- : The URL that will receive the _data_. Can be relative or absolute.
- `data` {{Optional_inline}}
- : A {{jsxref("ArrayBuffer")}}, {{domxref("ArrayBufferView")}}, {{domxref("Blob")}},
string, {{domxref("FormData")}}, or {{domxref("URLSearchParams")}}
- : An {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}}, a {{jsxref("DataView")}}, a {{domxref("Blob")}},
a string literal or object, a {{domxref("FormData")}} or a {{domxref("URLSearchParams")}}
object containing the data to send.

### Return values
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/oes_texture_float/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WebGL extensions are available using the {{domxref("WebGLRenderingContext.getExt
This extension extends {{domxref("WebGLRenderingContext.texImage2D()")}} and {{domxref("WebGLRenderingContext.texSubImage2D()")}}:

- The `type` parameter now accepts `gl.FLOAT`.
- The `pixels` parameter now accepts an `ArrayBufferView` of type {{jsxref("Float32Array")}}.
- The `pixels` parameter now accepts a {{jsxref("Float32Array")}}.

## Limitation: Linear filtering

Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/rtcdatachannel/send/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ send(data)

- `data`
- : The data to transmit across the connection. This may be a string,
a {{domxref("Blob")}}, an {{jsxref("ArrayBuffer")}}, or an
{{domxref("ArrayBufferView")}}.
a {{domxref("Blob")}}, an {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object.

### Return value

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/serialport/writable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ browser-compat: api.SerialPort.writable
---
{{securecontext_header}}{{DefaultAPISidebar("Serial API")}}

The **`writable`** read-only property of the {{domxref("SerialPort")}} interface returns a {{domxref("WritableStream")}} for sending data to the device connected to the port. Chunks written to this stream must be instances of {{domxref("BufferSource")}} (for example, an {{jsxref("ArrayBuffer")}} or {{domxref("ArrayBufferView")}} such as {{jsxref("Uint8Array")}}). This property is non-null as long as the port is open and has not encountered a fatal error.
The **`writable`** read-only property of the {{domxref("SerialPort")}} interface returns a {{domxref("WritableStream")}} for sending data to the device connected to the port. Chunks written to this stream must be instances of {{domxref("BufferSource")}} (for example, an {{jsxref("ArrayBuffer")}}, a {{jsxref("DataView")}} or a {{jsxref("TypedArray")}} such as {{jsxref("Uint8Array")}}). This property is non-null as long as the port is open and has not encountered a fatal error.

## Value

Expand Down
9 changes: 4 additions & 5 deletions files/en-us/web/api/sourcebuffer/appendbuffer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ browser-compat: api.SourceBuffer.appendBuffer

The **`appendBuffer()`** method of the
{{domxref("SourceBuffer")}} interface appends media segment data from an
{{jsxref("ArrayBuffer")}} or `ArrayBufferView` object to the
`SourceBuffer`.
{{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object
to the `SourceBuffer`.

## Syntax

Expand All @@ -32,9 +32,8 @@ appendBuffer(source)
### Parameters

- `source`
- : A {{domxref("BufferSource")}} (that is, either an {{domxref("ArrayBufferView")}} or
{{jsxref("ArrayBuffer")}}) which contains the media segment data you want to add to
the `SourceBuffer`.
- : Either an {{domxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object
that contains the media segment data you want to add to the `SourceBuffer`.

### Return value

Expand Down
11 changes: 6 additions & 5 deletions files/en-us/web/api/sourcebuffer/appendbufferasync/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ browser-compat: api.SourceBuffer.appendBufferAsync

The **`appendBufferAsync()`** method
of the {{domxref("SourceBuffer")}} interface begins the process of asynchronously
appending media segment data from an {{jsxref("ArrayBuffer")}} or
{{domxref("ArrayBufferView")}} object to the `SourceBuffer`. It
appending media segment data from an {{jsxref("ArrayBuffer")}},
a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object to the `SourceBuffer`.
It
returns a {{jsxref("Promise")}} which is fulfilled once the buffer has been appended.

## Syntax
Expand All @@ -34,14 +35,14 @@ appendBufferAsync(source)
### Parameters

- `source`
- : A {{domxref("BufferSource")}} (that is, either an {{domxref("ArrayBufferView")}} or
{{jsxref("ArrayBuffer")}}) which contains the media segment data you want to add to
- : Either an {{domxref("ArrayBufferView")}},
a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object that contains the media segment data you want to add to
the `SourceBuffer`.

### Return value

A {{jsxref("Promise")}} which is fulfilled when the buffer has been added successfully
to the `SourceBuffer`, or `null` if the request could not be
to the `SourceBuffer`, or `null`, if the request could not be
initiated.

## Examples
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/sourcebuffer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ _Inherits methods from its parent interface, {{domxref("EventTarget")}}._
- {{domxref("SourceBuffer.abort()")}}
- : Aborts the current segment and resets the segment parser.
- {{domxref("SourceBuffer.appendBuffer()")}}
- : Appends media segment data from an {{jsxref("ArrayBuffer")}} or {{domxref("ArrayBufferView")}} object to the `SourceBuffer`.
- : Appends media segment data from an {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object to the `SourceBuffer`.
- {{domxref("SourceBuffer.appendBufferAsync()")}} {{experimental_inline}}
- : Starts the process of asynchronously appending the specified buffer to the `SourceBuffer`. Returns a {{jsxref("Promise")}} which is fulfilled once the buffer has been appended.
- {{domxref("SourceBuffer.appendStream()")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/subtlecrypto/digest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ digest(algorithm, data)
- `"SHA-384"`
- `"SHA-512"`.
- `data`
- : An {{jsxref("ArrayBuffer")}} or {{domxref("ArrayBufferView")}} containing the data to be digested.
- : An {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object containing the data to be digested.

### Return value

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/subtlecrypto/sign/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sign(algorithm, key, data)
- : A {{domxref("CryptoKey")}} object containing the key to be used for signing.
If `algorithm` identifies a public-key cryptosystem, this is the private key.
- `data`
- : An {{jsxref("ArrayBuffer")}} or {{domxref("ArrayBufferView")}} object containing the data to be signed.
- : An {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object containing the data to be signed.

### Return value

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/textdecoder/decode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ decode(buffer, options)
### Parameters

- `buffer` {{Optional_Inline}}
- : Is either an
[`ArrayBuffer`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)
or an [`ArrayBufferView`](/en-US/docs/Web/API/ArrayBufferView)
- : Is an [`ArrayBuffer`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer),
a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object
containing the text to decode.
- `options` {{Optional_Inline}}

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/videoframe/copyto/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ copyTo(destination, options)
### Parameters

- `destination`
- : An `ArrayBuffer` or `ArrayBufferView` to copy to.
- : An `ArrayBuffer`, a {{jsxref("TypedArray")}}, or a {{jsxref("DataView")}} to copy to.
- `options`{{Optional_Inline}}
- : An object containing the following:
- `rect`{{Optional_Inline}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ It clones by recursing through the input object while maintaining a map of previ
<td></td>
</tr>
<tr>
<td>{{domxref("ArrayBufferView")}}</td>
<td>
Including other <a href="/en-US/docs/Web/JavaScript/Typed_arrays">typed arrays</a>.
</td>
<td>{{jsxref("TypedArray")}}</td>
<td></td>
</tr>
<tr>
<td>{{jsxref("DataView")}}</td>
<td></td>
</tr>
<tr>
<td>{{domxref("ImageBitmap")}}</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height,
- : A {{domxref("WebGL_API/Types", "GLint")}} specifying the offset in bytes from which to read from the
buffer bound to `gl.PIXEL_UNPACK_BUFFER`.
- `srcData`
- : An {{domxref("ArrayBufferView")}} that be used as a data store for the compressed
- : A {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object that will be used as a data store for the compressed
image data in memory.

### Return value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ getBufferSubData(target, srcByteOffset, dstData, dstOffset, length)
- : A {{domxref("WebGL_API/Types", "GLintptr")}} specifying the byte offset from which to start reading
from the buffer.
- `dstData`
- : An {{domxref("ArrayBufferView")}} to copy the data to. If `dstData` is a
- : A {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object to copy the data to. If `dstData` is a
{{jsxref("DataView")}} then `dstOffset` and `length` are
interpreted in bytes, otherwise `dstData`'s element type is used.
- `dstOffset` {{optional_inline}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ texImage3D(target, level, internalformat, width, height, depth, border, format,
- {{domxref("HTMLVideoElement")}}.

- `srcData`
- : An {{domxref("ArrayBufferView")}} object.
- : A {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object.

- `offset`
- : A {{domxref("WebGL_API/Types", "GLintptr")}} byte offset into the {{domxref("WebGLBuffer")}}'s data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,11 @@ texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, fo

- : One of the following objects can be used as a pixel source for the texture:

- {{domxref("ArrayBufferView")}}:

- A {{jsxref("Uint8Array")}} must be used if `type` is
`gl.UNSIGNED_BYTE`.
- A {{jsxref("Uint16Array")}} must be used if `type` is either
`gl.UNSIGNED_SHORT_5_6_5`, `gl.UNSIGNED_SHORT_4_4_4_4`,
`gl.UNSIGNED_SHORT_5_5_5_1`, or `ext.HALF_FLOAT_OES`.
- A {{jsxref("Float32Array")}} must be used if `type` is
`gl.FLOAT`.

- {{jsxref("Uint8Array")}} (must be used if `type` is `gl.UNSIGNED_BYTE`)
- {{jsxref("Uint16Array")}} (must be used if `type` is either
`gl.UNSIGNED_SHORT_5_6_5`, `gl.UNSIGNED_SHORT_4_4_4_4`,
`gl.UNSIGNED_SHORT_5_5_5_1`, or `ext.HALF_FLOAT_OES`)
- {{jsxref("Float32Array")}} (must be used if `type` is `gl.FLOAT`)
- {{domxref("ImageBitmap")}}
- {{domxref("ImageData")}}
- {{domxref("HTMLImageElement")}}
Expand All @@ -133,7 +128,7 @@ texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, fo

- `srcData`

- : An {{domxref("ArrayBufferView")}} object.
- : A {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object.

- `offset`
- : A {{domxref("WebGL_API/Types", "GLintptr")}} byte offset into the {{domxref("WebGLBuffer")}}'s data
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/webgl_depth_texture/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This extension extends {{domxref("WebGLRenderingContext.texImage2D()")}}:

- The `format` and `internalformat` parameters now accept `gl.DEPTH_COMPONENT` and `gl.DEPTH_STENCIL`.
- The `type` parameter now accepts `gl.UNSIGNED_SHORT`, `gl.UNSIGNED_INT`, and `ext.UNSIGNED_INT_24_8_WEBGL`.
- The `pixels` parameter now accepts an `ArrayBufferView` of type `Uint16Array` and `Uint32Array`.
- The `pixels` parameter now accepts a {{jsxref("Uint16Array")}} or a {{jsxref("Uint32Array")}} object.

This extension extends {{domxref("WebGLRenderingContext.framebufferTexture2D()")}}:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ bufferData(target, srcData, usage, srcOffset, length)
- : A {{domxref("WebGL_API/Types", "GLsizeiptr")}} setting the size in bytes of the buffer object's data
store.
- `srcData` {{optional_inline}}
- : An {{jsxref("ArrayBuffer")}}, {{jsxref("SharedArrayBuffer")}} or one of the
{{domxref("ArrayBufferView")}} typed array types that will be copied into the data
store. If `null`, a data store is still created, but the content is
uninitialized and undefined.
- : An {{jsxref("ArrayBuffer")}}, {{jsxref("SharedArrayBuffer")}}, a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}}
that will be copied into the data store.
If `null`, a data store is still created, but the content is uninitialized and undefined.
- `usage`

- : A {{domxref("WebGL_API/Types", "GLenum")}} specifying the intended usage pattern of the data store
Expand Down
Loading