@types/web 0.0.326 → 0.0.328

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.326 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.326.
50
+ You can read what changed in version 0.0.328 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.328.
package/index.d.ts CHANGED
@@ -815,10 +815,38 @@ interface GPUColorDict {
815
815
  r: number;
816
816
  }
817
817
 
818
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
819
+ colorSpace?: PredefinedColorSpace;
820
+ premultipliedAlpha?: boolean;
821
+ }
822
+
823
+ interface GPUCopyExternalImageSourceInfo {
824
+ flipY?: boolean;
825
+ origin?: GPUOrigin2D;
826
+ source: GPUCopyExternalImageSource;
827
+ }
828
+
829
+ interface GPUExtent3DDict {
830
+ depthOrArrayLayers?: GPUIntegerCoordinate;
831
+ height?: GPUIntegerCoordinate;
832
+ width: GPUIntegerCoordinate;
833
+ }
834
+
818
835
  interface GPUObjectDescriptorBase {
819
836
  label?: string;
820
837
  }
821
838
 
839
+ interface GPUOrigin2DDict {
840
+ x?: GPUIntegerCoordinate;
841
+ y?: GPUIntegerCoordinate;
842
+ }
843
+
844
+ interface GPUOrigin3DDict {
845
+ x?: GPUIntegerCoordinate;
846
+ y?: GPUIntegerCoordinate;
847
+ z?: GPUIntegerCoordinate;
848
+ }
849
+
822
850
  interface GPUPipelineErrorInit {
823
851
  reason: GPUPipelineErrorReason;
824
852
  }
@@ -826,6 +854,19 @@ interface GPUPipelineErrorInit {
826
854
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
827
855
  }
828
856
 
857
+ interface GPUTexelCopyBufferLayout {
858
+ bytesPerRow?: GPUSize32;
859
+ offset?: GPUSize64;
860
+ rowsPerImage?: GPUSize32;
861
+ }
862
+
863
+ interface GPUTexelCopyTextureInfo {
864
+ aspect?: GPUTextureAspect;
865
+ mipLevel?: GPUIntegerCoordinate;
866
+ origin?: GPUOrigin3D;
867
+ texture: GPUTexture;
868
+ }
869
+
829
870
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
830
871
  arrayLayerCount?: GPUIntegerCoordinate;
831
872
  aspect?: GPUTextureAspect;
@@ -15222,6 +15263,50 @@ declare var GPUQuerySet: {
15222
15263
  new(): GPUQuerySet;
15223
15264
  };
15224
15265
 
15266
+ /**
15267
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
15268
+ * Available only in secure contexts.
15269
+ *
15270
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
15271
+ */
15272
+ interface GPUQueue extends GPUObjectBase {
15273
+ /**
15274
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
15275
+ *
15276
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
15277
+ */
15278
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
15279
+ /**
15280
+ * The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
15281
+ *
15282
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
15283
+ */
15284
+ onSubmittedWorkDone(): Promise<void>;
15285
+ /**
15286
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
15287
+ *
15288
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
15289
+ */
15290
+ submit(commandBuffers: GPUCommandBuffer[]): void;
15291
+ /**
15292
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
15293
+ *
15294
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
15295
+ */
15296
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
15297
+ /**
15298
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
15299
+ *
15300
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
15301
+ */
15302
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
15303
+ }
15304
+
15305
+ declare var GPUQueue: {
15306
+ prototype: GPUQueue;
15307
+ new(): GPUQueue;
15308
+ };
15309
+
15225
15310
  /**
15226
15311
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15227
15312
  * Available only in secure contexts.
@@ -43415,11 +43500,15 @@ type GLuint = number;
43415
43500
  type GLuint64 = number;
43416
43501
  type GPUBufferDynamicOffset = number;
43417
43502
  type GPUColor = number[] | GPUColorDict;
43503
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
43504
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
43418
43505
  type GPUFlagsConstant = number;
43419
43506
  type GPUIndex32 = number;
43420
43507
  type GPUIntegerCoordinate = number;
43421
43508
  type GPUIntegerCoordinateOut = number;
43422
43509
  type GPUMapModeFlags = number;
43510
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
43511
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
43423
43512
  type GPUSignedOffset32 = number;
43424
43513
  type GPUSize32 = number;
43425
43514
  type GPUSize32Out = number;
@@ -43693,7 +43782,7 @@ interface AudioParam {
43693
43782
  *
43694
43783
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)
43695
43784
  */
43696
- setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
43785
+ setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
43697
43786
  }
43698
43787
 
43699
43788
  interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
@@ -43705,13 +43794,13 @@ interface BaseAudioContext {
43705
43794
  *
43706
43795
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
43707
43796
  */
43708
- createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
43797
+ createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
43709
43798
  /**
43710
43799
  * The **`createPeriodicWave()`** method of the BaseAudioContext interface is used to create a PeriodicWave. This wave is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
43711
43800
  *
43712
43801
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)
43713
43802
  */
43714
- createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
43803
+ createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
43715
43804
  }
43716
43805
 
43717
43806
  interface CSSKeyframesRule {
@@ -43753,17 +43842,17 @@ interface Cache {
43753
43842
  *
43754
43843
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
43755
43844
  */
43756
- addAll(requests: RequestInfo[]): Promise<void>;
43845
+ addAll(requests: Iterable<RequestInfo>): Promise<void>;
43757
43846
  }
43758
43847
 
43759
43848
  interface CanvasPath {
43760
43849
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
43761
- roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
43850
+ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
43762
43851
  }
43763
43852
 
43764
43853
  interface CanvasPathDrawingStyles {
43765
43854
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
43766
- setLineDash(segments: number[]): void;
43855
+ setLineDash(segments: Iterable<number>): void;
43767
43856
  }
43768
43857
 
43769
43858
  interface CookieStoreManager {
@@ -43772,13 +43861,13 @@ interface CookieStoreManager {
43772
43861
  *
43773
43862
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
43774
43863
  */
43775
- subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
43864
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
43776
43865
  /**
43777
43866
  * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
43778
43867
  *
43779
43868
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
43780
43869
  */
43781
- unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
43870
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
43782
43871
  }
43783
43872
 
43784
43873
  interface CustomStateSet extends Set<string> {
@@ -43829,7 +43918,28 @@ interface FormData {
43829
43918
 
43830
43919
  interface GPUBindingCommandsMixin {
43831
43920
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
43832
- setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
43921
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
43922
+ }
43923
+
43924
+ interface GPUQueue {
43925
+ /**
43926
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
43927
+ *
43928
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
43929
+ */
43930
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
43931
+ /**
43932
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
43933
+ *
43934
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
43935
+ */
43936
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
43937
+ /**
43938
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
43939
+ *
43940
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
43941
+ */
43942
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
43833
43943
  }
43834
43944
 
43835
43945
  interface GPURenderPassEncoder {
@@ -43838,13 +43948,13 @@ interface GPURenderPassEncoder {
43838
43948
  *
43839
43949
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
43840
43950
  */
43841
- executeBundles(bundles: GPURenderBundle[]): void;
43951
+ executeBundles(bundles: Iterable<GPURenderBundle>): void;
43842
43952
  /**
43843
43953
  * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
43844
43954
  *
43845
43955
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
43846
43956
  */
43847
- setBlendConstant(color: number[]): void;
43957
+ setBlendConstant(color: Iterable<number>): void;
43848
43958
  }
43849
43959
 
43850
43960
  interface GPUSupportedFeatures extends ReadonlySet<string> {
@@ -43896,7 +44006,7 @@ interface IDBDatabase {
43896
44006
  *
43897
44007
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
43898
44008
  */
43899
- transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
44009
+ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
43900
44010
  }
43901
44011
 
43902
44012
  interface IDBObjectStore {
@@ -43905,7 +44015,7 @@ interface IDBObjectStore {
43905
44015
  *
43906
44016
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
43907
44017
  */
43908
- createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
44018
+ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
43909
44019
  }
43910
44020
 
43911
44021
  interface ImageTrackList {
@@ -43921,7 +44031,7 @@ interface MIDIOutput {
43921
44031
  *
43922
44032
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)
43923
44033
  */
43924
- send(data: number[], timestamp?: DOMHighResTimeStamp): void;
44034
+ send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
43925
44035
  }
43926
44036
 
43927
44037
  interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
@@ -43944,7 +44054,7 @@ interface MediaList {
43944
44054
 
43945
44055
  interface MessageEvent<T = any> {
43946
44056
  /** @deprecated */
43947
- initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
44057
+ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
43948
44058
  }
43949
44059
 
43950
44060
  interface MimeTypeArray {
@@ -43962,13 +44072,13 @@ interface Navigator {
43962
44072
  *
43963
44073
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
43964
44074
  */
43965
- requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
44075
+ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
43966
44076
  /**
43967
44077
  * The **`vibrate()`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists. If the device doesn't support vibration, this method has no effect. If a vibration pattern is already in progress when this method is called, the previous pattern is halted and the new one begins instead.
43968
44078
  *
43969
44079
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)
43970
44080
  */
43971
- vibrate(pattern: number[]): boolean;
44081
+ vibrate(pattern: Iterable<number>): boolean;
43972
44082
  }
43973
44083
 
43974
44084
  interface NodeList {
@@ -44005,7 +44115,7 @@ interface RTCRtpTransceiver {
44005
44115
  *
44006
44116
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
44007
44117
  */
44008
- setCodecPreferences(codecs: RTCRtpCodec[]): void;
44118
+ setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
44009
44119
  }
44010
44120
 
44011
44121
  interface RTCStatsReport extends ReadonlyMap<string, any> {
@@ -44048,10 +44158,10 @@ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinI
44048
44158
  }
44049
44159
 
44050
44160
  interface StylePropertyMapReadOnly {
44051
- [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>;
44052
- entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>;
44161
+ [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
44162
+ entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
44053
44163
  keys(): StylePropertyMapReadOnlyIterator<string>;
44054
- values(): StylePropertyMapReadOnlyIterator<CSSStyleValue[]>;
44164
+ values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
44055
44165
  }
44056
44166
 
44057
44167
  interface StyleSheetList {
@@ -44064,7 +44174,7 @@ interface SubtleCrypto {
44064
44174
  *
44065
44175
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
44066
44176
  */
44067
- deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
44177
+ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
44068
44178
  /**
44069
44179
  * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
44070
44180
  *
@@ -44074,20 +44184,20 @@ interface SubtleCrypto {
44074
44184
  generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
44075
44185
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
44076
44186
  generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
44077
- generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
44187
+ generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
44078
44188
  /**
44079
44189
  * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
44080
44190
  *
44081
44191
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
44082
44192
  */
44083
44193
  importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
44084
- importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
44194
+ importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
44085
44195
  /**
44086
44196
  * The **`unwrapKey()`** method of the SubtleCrypto interface "unwraps" a key. This means that it takes as its input a key that has been exported and then encrypted (also called "wrapped"). It decrypts the key and then imports it, returning a CryptoKey object that can be used in the Web Crypto API.
44087
44197
  *
44088
44198
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
44089
44199
  */
44090
- unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
44200
+ unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
44091
44201
  }
44092
44202
 
44093
44203
  interface TextTrackCueList {
@@ -44125,7 +44235,7 @@ interface WEBGL_draw_buffers {
44125
44235
  *
44126
44236
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
44127
44237
  */
44128
- drawBuffersWEBGL(buffers: GLenum[]): void;
44238
+ drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
44129
44239
  }
44130
44240
 
44131
44241
  interface WEBGL_multi_draw {
@@ -44134,25 +44244,25 @@ interface WEBGL_multi_draw {
44134
44244
  *
44135
44245
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
44136
44246
  */
44137
- multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
44247
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
44138
44248
  /**
44139
44249
  * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArrays() method.
44140
44250
  *
44141
44251
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
44142
44252
  */
44143
- multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
44253
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
44144
44254
  /**
44145
44255
  * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElementsInstanced() method.
44146
44256
  *
44147
44257
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
44148
44258
  */
44149
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
44259
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
44150
44260
  /**
44151
44261
  * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElements() method.
44152
44262
  *
44153
44263
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
44154
44264
  */
44155
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
44265
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
44156
44266
  }
44157
44267
 
44158
44268
  interface WGSLLanguageFeatures extends ReadonlySet<string> {
@@ -44160,108 +44270,108 @@ interface WGSLLanguageFeatures extends ReadonlySet<string> {
44160
44270
 
44161
44271
  interface WebGL2RenderingContextBase {
44162
44272
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
44163
- clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
44273
+ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
44164
44274
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
44165
- clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: GLint[], srcOffset?: number): void;
44275
+ clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
44166
44276
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
44167
- clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: GLuint[], srcOffset?: number): void;
44277
+ clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
44168
44278
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
44169
- drawBuffers(buffers: GLenum[]): void;
44279
+ drawBuffers(buffers: Iterable<GLenum>): void;
44170
44280
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
44171
- getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
44281
+ getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
44172
44282
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
44173
- getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
44283
+ getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
44174
44284
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
44175
- invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
44285
+ invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
44176
44286
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
44177
- invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
44287
+ invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
44178
44288
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
44179
- transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
44289
+ transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
44180
44290
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
44181
- uniform1uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
44291
+ uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
44182
44292
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
44183
- uniform2uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
44293
+ uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
44184
44294
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
44185
- uniform3uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
44295
+ uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
44186
44296
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
44187
- uniform4uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
44297
+ uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
44188
44298
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
44189
- uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44299
+ uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44190
44300
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
44191
- uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44301
+ uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44192
44302
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
44193
- uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44303
+ uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44194
44304
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
44195
- uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44305
+ uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44196
44306
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
44197
- uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44307
+ uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44198
44308
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
44199
- uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44309
+ uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44200
44310
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
44201
- vertexAttribI4iv(index: GLuint, values: GLint[]): void;
44311
+ vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
44202
44312
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
44203
- vertexAttribI4uiv(index: GLuint, values: GLuint[]): void;
44313
+ vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
44204
44314
  }
44205
44315
 
44206
44316
  interface WebGL2RenderingContextOverloads {
44207
44317
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44208
- uniform1fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44318
+ uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44209
44319
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44210
- uniform1iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
44320
+ uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
44211
44321
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44212
- uniform2fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44322
+ uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44213
44323
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44214
- uniform2iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
44324
+ uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
44215
44325
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44216
- uniform3fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44326
+ uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44217
44327
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44218
- uniform3iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
44328
+ uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
44219
44329
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44220
- uniform4fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44330
+ uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44221
44331
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44222
- uniform4iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
44332
+ uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
44223
44333
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
44224
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44334
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44225
44335
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
44226
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44336
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44227
44337
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
44228
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
44338
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
44229
44339
  }
44230
44340
 
44231
44341
  interface WebGLRenderingContextBase {
44232
44342
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
44233
- vertexAttrib1fv(index: GLuint, values: GLfloat[]): void;
44343
+ vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
44234
44344
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
44235
- vertexAttrib2fv(index: GLuint, values: GLfloat[]): void;
44345
+ vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
44236
44346
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
44237
- vertexAttrib3fv(index: GLuint, values: GLfloat[]): void;
44347
+ vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
44238
44348
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
44239
- vertexAttrib4fv(index: GLuint, values: GLfloat[]): void;
44349
+ vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
44240
44350
  }
44241
44351
 
44242
44352
  interface WebGLRenderingContextOverloads {
44243
44353
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44244
- uniform1fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
44354
+ uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
44245
44355
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44246
- uniform1iv(location: WebGLUniformLocation | null, v: GLint[]): void;
44356
+ uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
44247
44357
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44248
- uniform2fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
44358
+ uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
44249
44359
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44250
- uniform2iv(location: WebGLUniformLocation | null, v: GLint[]): void;
44360
+ uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
44251
44361
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44252
- uniform3fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
44362
+ uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
44253
44363
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44254
- uniform3iv(location: WebGLUniformLocation | null, v: GLint[]): void;
44364
+ uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
44255
44365
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44256
- uniform4fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
44366
+ uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
44257
44367
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
44258
- uniform4iv(location: WebGLUniformLocation | null, v: GLint[]): void;
44368
+ uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
44259
44369
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
44260
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
44370
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
44261
44371
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
44262
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
44372
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
44263
44373
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
44264
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
44374
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
44265
44375
  }
44266
44376
 
44267
44377
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.326",
3
+ "version": "0.0.328",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -812,10 +812,38 @@ interface GPUColorDict {
812
812
  r: number;
813
813
  }
814
814
 
815
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
816
+ colorSpace?: PredefinedColorSpace;
817
+ premultipliedAlpha?: boolean;
818
+ }
819
+
820
+ interface GPUCopyExternalImageSourceInfo {
821
+ flipY?: boolean;
822
+ origin?: GPUOrigin2D;
823
+ source: GPUCopyExternalImageSource;
824
+ }
825
+
826
+ interface GPUExtent3DDict {
827
+ depthOrArrayLayers?: GPUIntegerCoordinate;
828
+ height?: GPUIntegerCoordinate;
829
+ width: GPUIntegerCoordinate;
830
+ }
831
+
815
832
  interface GPUObjectDescriptorBase {
816
833
  label?: string;
817
834
  }
818
835
 
836
+ interface GPUOrigin2DDict {
837
+ x?: GPUIntegerCoordinate;
838
+ y?: GPUIntegerCoordinate;
839
+ }
840
+
841
+ interface GPUOrigin3DDict {
842
+ x?: GPUIntegerCoordinate;
843
+ y?: GPUIntegerCoordinate;
844
+ z?: GPUIntegerCoordinate;
845
+ }
846
+
819
847
  interface GPUPipelineErrorInit {
820
848
  reason: GPUPipelineErrorReason;
821
849
  }
@@ -823,6 +851,19 @@ interface GPUPipelineErrorInit {
823
851
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
824
852
  }
825
853
 
854
+ interface GPUTexelCopyBufferLayout {
855
+ bytesPerRow?: GPUSize32;
856
+ offset?: GPUSize64;
857
+ rowsPerImage?: GPUSize32;
858
+ }
859
+
860
+ interface GPUTexelCopyTextureInfo {
861
+ aspect?: GPUTextureAspect;
862
+ mipLevel?: GPUIntegerCoordinate;
863
+ origin?: GPUOrigin3D;
864
+ texture: GPUTexture;
865
+ }
866
+
826
867
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
827
868
  arrayLayerCount?: GPUIntegerCoordinate;
828
869
  aspect?: GPUTextureAspect;
@@ -15208,6 +15249,50 @@ declare var GPUQuerySet: {
15208
15249
  new(): GPUQuerySet;
15209
15250
  };
15210
15251
 
15252
+ /**
15253
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
15254
+ * Available only in secure contexts.
15255
+ *
15256
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
15257
+ */
15258
+ interface GPUQueue extends GPUObjectBase {
15259
+ /**
15260
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
15261
+ *
15262
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
15263
+ */
15264
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
15265
+ /**
15266
+ * The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
15267
+ *
15268
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
15269
+ */
15270
+ onSubmittedWorkDone(): Promise<void>;
15271
+ /**
15272
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
15273
+ *
15274
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
15275
+ */
15276
+ submit(commandBuffers: GPUCommandBuffer[]): void;
15277
+ /**
15278
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
15279
+ *
15280
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
15281
+ */
15282
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
15283
+ /**
15284
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
15285
+ *
15286
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
15287
+ */
15288
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
15289
+ }
15290
+
15291
+ declare var GPUQueue: {
15292
+ prototype: GPUQueue;
15293
+ new(): GPUQueue;
15294
+ };
15295
+
15211
15296
  /**
15212
15297
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15213
15298
  * Available only in secure contexts.
@@ -43389,11 +43474,15 @@ type GLuint = number;
43389
43474
  type GLuint64 = number;
43390
43475
  type GPUBufferDynamicOffset = number;
43391
43476
  type GPUColor = number[] | GPUColorDict;
43477
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
43478
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
43392
43479
  type GPUFlagsConstant = number;
43393
43480
  type GPUIndex32 = number;
43394
43481
  type GPUIntegerCoordinate = number;
43395
43482
  type GPUIntegerCoordinateOut = number;
43396
43483
  type GPUMapModeFlags = number;
43484
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
43485
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
43397
43486
  type GPUSignedOffset32 = number;
43398
43487
  type GPUSize32 = number;
43399
43488
  type GPUSize32Out = number;
@@ -143,6 +143,27 @@ interface GPUBindingCommandsMixin {
143
143
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
144
144
  }
145
145
 
146
+ interface GPUQueue {
147
+ /**
148
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
149
+ *
150
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
151
+ */
152
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
153
+ /**
154
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
155
+ *
156
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
157
+ */
158
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
159
+ /**
160
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
161
+ *
162
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
163
+ */
164
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
165
+ }
166
+
146
167
  interface GPURenderPassEncoder {
147
168
  /**
148
169
  * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
package/ts5.6/index.d.ts CHANGED
@@ -812,10 +812,38 @@ interface GPUColorDict {
812
812
  r: number;
813
813
  }
814
814
 
815
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
816
+ colorSpace?: PredefinedColorSpace;
817
+ premultipliedAlpha?: boolean;
818
+ }
819
+
820
+ interface GPUCopyExternalImageSourceInfo {
821
+ flipY?: boolean;
822
+ origin?: GPUOrigin2D;
823
+ source: GPUCopyExternalImageSource;
824
+ }
825
+
826
+ interface GPUExtent3DDict {
827
+ depthOrArrayLayers?: GPUIntegerCoordinate;
828
+ height?: GPUIntegerCoordinate;
829
+ width: GPUIntegerCoordinate;
830
+ }
831
+
815
832
  interface GPUObjectDescriptorBase {
816
833
  label?: string;
817
834
  }
818
835
 
836
+ interface GPUOrigin2DDict {
837
+ x?: GPUIntegerCoordinate;
838
+ y?: GPUIntegerCoordinate;
839
+ }
840
+
841
+ interface GPUOrigin3DDict {
842
+ x?: GPUIntegerCoordinate;
843
+ y?: GPUIntegerCoordinate;
844
+ z?: GPUIntegerCoordinate;
845
+ }
846
+
819
847
  interface GPUPipelineErrorInit {
820
848
  reason: GPUPipelineErrorReason;
821
849
  }
@@ -823,6 +851,19 @@ interface GPUPipelineErrorInit {
823
851
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
824
852
  }
825
853
 
854
+ interface GPUTexelCopyBufferLayout {
855
+ bytesPerRow?: GPUSize32;
856
+ offset?: GPUSize64;
857
+ rowsPerImage?: GPUSize32;
858
+ }
859
+
860
+ interface GPUTexelCopyTextureInfo {
861
+ aspect?: GPUTextureAspect;
862
+ mipLevel?: GPUIntegerCoordinate;
863
+ origin?: GPUOrigin3D;
864
+ texture: GPUTexture;
865
+ }
866
+
826
867
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
827
868
  arrayLayerCount?: GPUIntegerCoordinate;
828
869
  aspect?: GPUTextureAspect;
@@ -15219,6 +15260,50 @@ declare var GPUQuerySet: {
15219
15260
  new(): GPUQuerySet;
15220
15261
  };
15221
15262
 
15263
+ /**
15264
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
15265
+ * Available only in secure contexts.
15266
+ *
15267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
15268
+ */
15269
+ interface GPUQueue extends GPUObjectBase {
15270
+ /**
15271
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
15272
+ *
15273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
15274
+ */
15275
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
15276
+ /**
15277
+ * The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
15278
+ *
15279
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
15280
+ */
15281
+ onSubmittedWorkDone(): Promise<void>;
15282
+ /**
15283
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
15284
+ *
15285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
15286
+ */
15287
+ submit(commandBuffers: GPUCommandBuffer[]): void;
15288
+ /**
15289
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
15290
+ *
15291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
15292
+ */
15293
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
15294
+ /**
15295
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
15296
+ *
15297
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
15298
+ */
15299
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
15300
+ }
15301
+
15302
+ declare var GPUQueue: {
15303
+ prototype: GPUQueue;
15304
+ new(): GPUQueue;
15305
+ };
15306
+
15222
15307
  /**
15223
15308
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15224
15309
  * Available only in secure contexts.
@@ -43412,11 +43497,15 @@ type GLuint = number;
43412
43497
  type GLuint64 = number;
43413
43498
  type GPUBufferDynamicOffset = number;
43414
43499
  type GPUColor = number[] | GPUColorDict;
43500
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
43501
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
43415
43502
  type GPUFlagsConstant = number;
43416
43503
  type GPUIndex32 = number;
43417
43504
  type GPUIntegerCoordinate = number;
43418
43505
  type GPUIntegerCoordinateOut = number;
43419
43506
  type GPUMapModeFlags = number;
43507
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
43508
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
43420
43509
  type GPUSignedOffset32 = number;
43421
43510
  type GPUSize32 = number;
43422
43511
  type GPUSize32Out = number;
@@ -147,6 +147,27 @@ interface GPUBindingCommandsMixin {
147
147
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
148
148
  }
149
149
 
150
+ interface GPUQueue {
151
+ /**
152
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
153
+ *
154
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
155
+ */
156
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
157
+ /**
158
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
159
+ *
160
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
161
+ */
162
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
163
+ /**
164
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
165
+ *
166
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
167
+ */
168
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
169
+ }
170
+
150
171
  interface GPURenderPassEncoder {
151
172
  /**
152
173
  * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
package/ts5.9/index.d.ts CHANGED
@@ -812,10 +812,38 @@ interface GPUColorDict {
812
812
  r: number;
813
813
  }
814
814
 
815
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
816
+ colorSpace?: PredefinedColorSpace;
817
+ premultipliedAlpha?: boolean;
818
+ }
819
+
820
+ interface GPUCopyExternalImageSourceInfo {
821
+ flipY?: boolean;
822
+ origin?: GPUOrigin2D;
823
+ source: GPUCopyExternalImageSource;
824
+ }
825
+
826
+ interface GPUExtent3DDict {
827
+ depthOrArrayLayers?: GPUIntegerCoordinate;
828
+ height?: GPUIntegerCoordinate;
829
+ width: GPUIntegerCoordinate;
830
+ }
831
+
815
832
  interface GPUObjectDescriptorBase {
816
833
  label?: string;
817
834
  }
818
835
 
836
+ interface GPUOrigin2DDict {
837
+ x?: GPUIntegerCoordinate;
838
+ y?: GPUIntegerCoordinate;
839
+ }
840
+
841
+ interface GPUOrigin3DDict {
842
+ x?: GPUIntegerCoordinate;
843
+ y?: GPUIntegerCoordinate;
844
+ z?: GPUIntegerCoordinate;
845
+ }
846
+
819
847
  interface GPUPipelineErrorInit {
820
848
  reason: GPUPipelineErrorReason;
821
849
  }
@@ -823,6 +851,19 @@ interface GPUPipelineErrorInit {
823
851
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
824
852
  }
825
853
 
854
+ interface GPUTexelCopyBufferLayout {
855
+ bytesPerRow?: GPUSize32;
856
+ offset?: GPUSize64;
857
+ rowsPerImage?: GPUSize32;
858
+ }
859
+
860
+ interface GPUTexelCopyTextureInfo {
861
+ aspect?: GPUTextureAspect;
862
+ mipLevel?: GPUIntegerCoordinate;
863
+ origin?: GPUOrigin3D;
864
+ texture: GPUTexture;
865
+ }
866
+
826
867
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
827
868
  arrayLayerCount?: GPUIntegerCoordinate;
828
869
  aspect?: GPUTextureAspect;
@@ -15219,6 +15260,50 @@ declare var GPUQuerySet: {
15219
15260
  new(): GPUQuerySet;
15220
15261
  };
15221
15262
 
15263
+ /**
15264
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
15265
+ * Available only in secure contexts.
15266
+ *
15267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
15268
+ */
15269
+ interface GPUQueue extends GPUObjectBase {
15270
+ /**
15271
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
15272
+ *
15273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
15274
+ */
15275
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
15276
+ /**
15277
+ * The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
15278
+ *
15279
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
15280
+ */
15281
+ onSubmittedWorkDone(): Promise<void>;
15282
+ /**
15283
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
15284
+ *
15285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
15286
+ */
15287
+ submit(commandBuffers: GPUCommandBuffer[]): void;
15288
+ /**
15289
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
15290
+ *
15291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
15292
+ */
15293
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
15294
+ /**
15295
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
15296
+ *
15297
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
15298
+ */
15299
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
15300
+ }
15301
+
15302
+ declare var GPUQueue: {
15303
+ prototype: GPUQueue;
15304
+ new(): GPUQueue;
15305
+ };
15306
+
15222
15307
  /**
15223
15308
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15224
15309
  * Available only in secure contexts.
@@ -43412,11 +43497,15 @@ type GLuint = number;
43412
43497
  type GLuint64 = number;
43413
43498
  type GPUBufferDynamicOffset = number;
43414
43499
  type GPUColor = number[] | GPUColorDict;
43500
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
43501
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
43415
43502
  type GPUFlagsConstant = number;
43416
43503
  type GPUIndex32 = number;
43417
43504
  type GPUIntegerCoordinate = number;
43418
43505
  type GPUIntegerCoordinateOut = number;
43419
43506
  type GPUMapModeFlags = number;
43507
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
43508
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
43420
43509
  type GPUSignedOffset32 = number;
43421
43510
  type GPUSize32 = number;
43422
43511
  type GPUSize32Out = number;
@@ -147,6 +147,27 @@ interface GPUBindingCommandsMixin {
147
147
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
148
148
  }
149
149
 
150
+ interface GPUQueue {
151
+ /**
152
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
153
+ *
154
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
155
+ */
156
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
157
+ /**
158
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
159
+ *
160
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
161
+ */
162
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
163
+ /**
164
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
165
+ *
166
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
167
+ */
168
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
169
+ }
170
+
150
171
  interface GPURenderPassEncoder {
151
172
  /**
152
173
  * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.