@types/serviceworker 0.0.182 → 0.0.184

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
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.182 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.182.
31
+ You can read what changed in version 0.0.184 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.184.
package/index.d.ts CHANGED
@@ -282,10 +282,38 @@ interface GPUColorDict {
282
282
  r: number;
283
283
  }
284
284
 
285
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
286
+ colorSpace?: PredefinedColorSpace;
287
+ premultipliedAlpha?: boolean;
288
+ }
289
+
290
+ interface GPUCopyExternalImageSourceInfo {
291
+ flipY?: boolean;
292
+ origin?: GPUOrigin2D;
293
+ source: GPUCopyExternalImageSource;
294
+ }
295
+
296
+ interface GPUExtent3DDict {
297
+ depthOrArrayLayers?: GPUIntegerCoordinate;
298
+ height?: GPUIntegerCoordinate;
299
+ width: GPUIntegerCoordinate;
300
+ }
301
+
285
302
  interface GPUObjectDescriptorBase {
286
303
  label?: string;
287
304
  }
288
305
 
306
+ interface GPUOrigin2DDict {
307
+ x?: GPUIntegerCoordinate;
308
+ y?: GPUIntegerCoordinate;
309
+ }
310
+
311
+ interface GPUOrigin3DDict {
312
+ x?: GPUIntegerCoordinate;
313
+ y?: GPUIntegerCoordinate;
314
+ z?: GPUIntegerCoordinate;
315
+ }
316
+
289
317
  interface GPUPipelineErrorInit {
290
318
  reason: GPUPipelineErrorReason;
291
319
  }
@@ -293,6 +321,19 @@ interface GPUPipelineErrorInit {
293
321
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
294
322
  }
295
323
 
324
+ interface GPUTexelCopyBufferLayout {
325
+ bytesPerRow?: GPUSize32;
326
+ offset?: GPUSize64;
327
+ rowsPerImage?: GPUSize32;
328
+ }
329
+
330
+ interface GPUTexelCopyTextureInfo {
331
+ aspect?: GPUTextureAspect;
332
+ mipLevel?: GPUIntegerCoordinate;
333
+ origin?: GPUOrigin3D;
334
+ texture: GPUTexture;
335
+ }
336
+
296
337
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
297
338
  arrayLayerCount?: GPUIntegerCoordinate;
298
339
  aspect?: GPUTextureAspect;
@@ -4665,6 +4706,50 @@ declare var GPUQuerySet: {
4665
4706
  new(): GPUQuerySet;
4666
4707
  };
4667
4708
 
4709
+ /**
4710
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
4711
+ * Available only in secure contexts.
4712
+ *
4713
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
4714
+ */
4715
+ interface GPUQueue extends GPUObjectBase {
4716
+ /**
4717
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
4718
+ *
4719
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
4720
+ */
4721
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
4722
+ /**
4723
+ * 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.
4724
+ *
4725
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
4726
+ */
4727
+ onSubmittedWorkDone(): Promise<void>;
4728
+ /**
4729
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
4730
+ *
4731
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
4732
+ */
4733
+ submit(commandBuffers: GPUCommandBuffer[]): void;
4734
+ /**
4735
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
4736
+ *
4737
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
4738
+ */
4739
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
4740
+ /**
4741
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
4742
+ *
4743
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
4744
+ */
4745
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
4746
+ }
4747
+
4748
+ declare var GPUQueue: {
4749
+ prototype: GPUQueue;
4750
+ new(): GPUQueue;
4751
+ };
4752
+
4668
4753
  /**
4669
4754
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4670
4755
  * Available only in secure contexts.
@@ -12612,11 +12697,15 @@ type GLuint = number;
12612
12697
  type GLuint64 = number;
12613
12698
  type GPUBufferDynamicOffset = number;
12614
12699
  type GPUColor = number[] | GPUColorDict;
12700
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
12701
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
12615
12702
  type GPUFlagsConstant = number;
12616
12703
  type GPUIndex32 = number;
12617
12704
  type GPUIntegerCoordinate = number;
12618
12705
  type GPUIntegerCoordinateOut = number;
12619
12706
  type GPUMapModeFlags = number;
12707
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
12708
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
12620
12709
  type GPUSignedOffset32 = number;
12621
12710
  type GPUSize32 = number;
12622
12711
  type GPUSize32Out = number;
@@ -12760,17 +12849,17 @@ interface Cache {
12760
12849
  *
12761
12850
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
12762
12851
  */
12763
- addAll(requests: RequestInfo[]): Promise<void>;
12852
+ addAll(requests: Iterable<RequestInfo>): Promise<void>;
12764
12853
  }
12765
12854
 
12766
12855
  interface CanvasPath {
12767
12856
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
12768
- roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
12857
+ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
12769
12858
  }
12770
12859
 
12771
12860
  interface CanvasPathDrawingStyles {
12772
12861
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
12773
- setLineDash(segments: number[]): void;
12862
+ setLineDash(segments: Iterable<number>): void;
12774
12863
  }
12775
12864
 
12776
12865
  interface CookieStoreManager {
@@ -12779,13 +12868,13 @@ interface CookieStoreManager {
12779
12868
  *
12780
12869
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
12781
12870
  */
12782
- subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
12871
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
12783
12872
  /**
12784
12873
  * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
12785
12874
  *
12786
12875
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
12787
12876
  */
12788
- unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
12877
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
12789
12878
  }
12790
12879
 
12791
12880
  interface DOMStringList {
@@ -12815,7 +12904,28 @@ interface FormData {
12815
12904
 
12816
12905
  interface GPUBindingCommandsMixin {
12817
12906
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
12818
- setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
12907
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
12908
+ }
12909
+
12910
+ interface GPUQueue {
12911
+ /**
12912
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
12913
+ *
12914
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
12915
+ */
12916
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
12917
+ /**
12918
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
12919
+ *
12920
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
12921
+ */
12922
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
12923
+ /**
12924
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
12925
+ *
12926
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
12927
+ */
12928
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
12819
12929
  }
12820
12930
 
12821
12931
  interface GPURenderPassEncoder {
@@ -12824,13 +12934,13 @@ interface GPURenderPassEncoder {
12824
12934
  *
12825
12935
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
12826
12936
  */
12827
- executeBundles(bundles: GPURenderBundle[]): void;
12937
+ executeBundles(bundles: Iterable<GPURenderBundle>): void;
12828
12938
  /**
12829
12939
  * 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).
12830
12940
  *
12831
12941
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
12832
12942
  */
12833
- setBlendConstant(color: number[]): void;
12943
+ setBlendConstant(color: Iterable<number>): void;
12834
12944
  }
12835
12945
 
12836
12946
  interface GPUSupportedFeatures extends ReadonlySet<string> {
@@ -12856,7 +12966,7 @@ interface IDBDatabase {
12856
12966
  *
12857
12967
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
12858
12968
  */
12859
- transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
12969
+ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
12860
12970
  }
12861
12971
 
12862
12972
  interface IDBObjectStore {
@@ -12865,12 +12975,12 @@ interface IDBObjectStore {
12865
12975
  *
12866
12976
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
12867
12977
  */
12868
- createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
12978
+ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
12869
12979
  }
12870
12980
 
12871
12981
  interface MessageEvent<T = any> {
12872
12982
  /** @deprecated */
12873
- initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
12983
+ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
12874
12984
  }
12875
12985
 
12876
12986
  interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
@@ -12878,10 +12988,10 @@ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinI
12878
12988
  }
12879
12989
 
12880
12990
  interface StylePropertyMapReadOnly {
12881
- [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>;
12882
- entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>;
12991
+ [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
12992
+ entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
12883
12993
  keys(): StylePropertyMapReadOnlyIterator<string>;
12884
- values(): StylePropertyMapReadOnlyIterator<CSSStyleValue[]>;
12994
+ values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
12885
12995
  }
12886
12996
 
12887
12997
  interface SubtleCrypto {
@@ -12890,7 +13000,7 @@ interface SubtleCrypto {
12890
13000
  *
12891
13001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
12892
13002
  */
12893
- deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
13003
+ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
12894
13004
  /**
12895
13005
  * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
12896
13006
  *
@@ -12900,20 +13010,20 @@ interface SubtleCrypto {
12900
13010
  generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
12901
13011
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
12902
13012
  generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
12903
- generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
13013
+ generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
12904
13014
  /**
12905
13015
  * 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.
12906
13016
  *
12907
13017
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
12908
13018
  */
12909
13019
  importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
12910
- importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
13020
+ importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
12911
13021
  /**
12912
13022
  * 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.
12913
13023
  *
12914
13024
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
12915
13025
  */
12916
- 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>;
13026
+ 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>;
12917
13027
  }
12918
13028
 
12919
13029
  interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
@@ -12936,7 +13046,7 @@ interface WEBGL_draw_buffers {
12936
13046
  *
12937
13047
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
12938
13048
  */
12939
- drawBuffersWEBGL(buffers: GLenum[]): void;
13049
+ drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
12940
13050
  }
12941
13051
 
12942
13052
  interface WEBGL_multi_draw {
@@ -12945,25 +13055,25 @@ interface WEBGL_multi_draw {
12945
13055
  *
12946
13056
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
12947
13057
  */
12948
- multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
13058
+ 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;
12949
13059
  /**
12950
13060
  * 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.
12951
13061
  *
12952
13062
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
12953
13063
  */
12954
- multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
13064
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
12955
13065
  /**
12956
13066
  * 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.
12957
13067
  *
12958
13068
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
12959
13069
  */
12960
- 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;
13070
+ 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;
12961
13071
  /**
12962
13072
  * 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.
12963
13073
  *
12964
13074
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
12965
13075
  */
12966
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
13076
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
12967
13077
  }
12968
13078
 
12969
13079
  interface WGSLLanguageFeatures extends ReadonlySet<string> {
@@ -12971,108 +13081,108 @@ interface WGSLLanguageFeatures extends ReadonlySet<string> {
12971
13081
 
12972
13082
  interface WebGL2RenderingContextBase {
12973
13083
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
12974
- clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
13084
+ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
12975
13085
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
12976
- clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: GLint[], srcOffset?: number): void;
13086
+ clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
12977
13087
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
12978
- clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: GLuint[], srcOffset?: number): void;
13088
+ clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
12979
13089
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
12980
- drawBuffers(buffers: GLenum[]): void;
13090
+ drawBuffers(buffers: Iterable<GLenum>): void;
12981
13091
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
12982
- getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
13092
+ getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
12983
13093
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
12984
- getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
13094
+ getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
12985
13095
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
12986
- invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
13096
+ invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
12987
13097
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
12988
- invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
13098
+ invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
12989
13099
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
12990
- transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
13100
+ transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
12991
13101
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
12992
- uniform1uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
13102
+ uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
12993
13103
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
12994
- uniform2uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
13104
+ uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
12995
13105
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
12996
- uniform3uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
13106
+ uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
12997
13107
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
12998
- uniform4uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
13108
+ uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
12999
13109
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
13000
- uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13110
+ uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13001
13111
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
13002
- uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13112
+ uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13003
13113
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
13004
- uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13114
+ uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13005
13115
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
13006
- uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13116
+ uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13007
13117
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
13008
- uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13118
+ uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13009
13119
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
13010
- uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13120
+ uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13011
13121
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
13012
- vertexAttribI4iv(index: GLuint, values: GLint[]): void;
13122
+ vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
13013
13123
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
13014
- vertexAttribI4uiv(index: GLuint, values: GLuint[]): void;
13124
+ vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
13015
13125
  }
13016
13126
 
13017
13127
  interface WebGL2RenderingContextOverloads {
13018
13128
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13019
- uniform1fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13129
+ uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13020
13130
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13021
- uniform1iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
13131
+ uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
13022
13132
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13023
- uniform2fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13133
+ uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13024
13134
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13025
- uniform2iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
13135
+ uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
13026
13136
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13027
- uniform3fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13137
+ uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13028
13138
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13029
- uniform3iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
13139
+ uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
13030
13140
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13031
- uniform4fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13141
+ uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13032
13142
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13033
- uniform4iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
13143
+ uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
13034
13144
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
13035
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13145
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13036
13146
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
13037
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13147
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13038
13148
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
13039
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
13149
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
13040
13150
  }
13041
13151
 
13042
13152
  interface WebGLRenderingContextBase {
13043
13153
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
13044
- vertexAttrib1fv(index: GLuint, values: GLfloat[]): void;
13154
+ vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
13045
13155
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
13046
- vertexAttrib2fv(index: GLuint, values: GLfloat[]): void;
13156
+ vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
13047
13157
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
13048
- vertexAttrib3fv(index: GLuint, values: GLfloat[]): void;
13158
+ vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
13049
13159
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
13050
- vertexAttrib4fv(index: GLuint, values: GLfloat[]): void;
13160
+ vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
13051
13161
  }
13052
13162
 
13053
13163
  interface WebGLRenderingContextOverloads {
13054
13164
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13055
- uniform1fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
13165
+ uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
13056
13166
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13057
- uniform1iv(location: WebGLUniformLocation | null, v: GLint[]): void;
13167
+ uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
13058
13168
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13059
- uniform2fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
13169
+ uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
13060
13170
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13061
- uniform2iv(location: WebGLUniformLocation | null, v: GLint[]): void;
13171
+ uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
13062
13172
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13063
- uniform3fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
13173
+ uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
13064
13174
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13065
- uniform3iv(location: WebGLUniformLocation | null, v: GLint[]): void;
13175
+ uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
13066
13176
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13067
- uniform4fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
13177
+ uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
13068
13178
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
13069
- uniform4iv(location: WebGLUniformLocation | null, v: GLint[]): void;
13179
+ uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
13070
13180
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
13071
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
13181
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
13072
13182
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
13073
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
13183
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
13074
13184
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
13075
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
13185
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
13076
13186
  }
13077
13187
 
13078
13188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.182",
3
+ "version": "0.0.184",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -279,10 +279,38 @@ interface GPUColorDict {
279
279
  r: number;
280
280
  }
281
281
 
282
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
283
+ colorSpace?: PredefinedColorSpace;
284
+ premultipliedAlpha?: boolean;
285
+ }
286
+
287
+ interface GPUCopyExternalImageSourceInfo {
288
+ flipY?: boolean;
289
+ origin?: GPUOrigin2D;
290
+ source: GPUCopyExternalImageSource;
291
+ }
292
+
293
+ interface GPUExtent3DDict {
294
+ depthOrArrayLayers?: GPUIntegerCoordinate;
295
+ height?: GPUIntegerCoordinate;
296
+ width: GPUIntegerCoordinate;
297
+ }
298
+
282
299
  interface GPUObjectDescriptorBase {
283
300
  label?: string;
284
301
  }
285
302
 
303
+ interface GPUOrigin2DDict {
304
+ x?: GPUIntegerCoordinate;
305
+ y?: GPUIntegerCoordinate;
306
+ }
307
+
308
+ interface GPUOrigin3DDict {
309
+ x?: GPUIntegerCoordinate;
310
+ y?: GPUIntegerCoordinate;
311
+ z?: GPUIntegerCoordinate;
312
+ }
313
+
286
314
  interface GPUPipelineErrorInit {
287
315
  reason: GPUPipelineErrorReason;
288
316
  }
@@ -290,6 +318,19 @@ interface GPUPipelineErrorInit {
290
318
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
291
319
  }
292
320
 
321
+ interface GPUTexelCopyBufferLayout {
322
+ bytesPerRow?: GPUSize32;
323
+ offset?: GPUSize64;
324
+ rowsPerImage?: GPUSize32;
325
+ }
326
+
327
+ interface GPUTexelCopyTextureInfo {
328
+ aspect?: GPUTextureAspect;
329
+ mipLevel?: GPUIntegerCoordinate;
330
+ origin?: GPUOrigin3D;
331
+ texture: GPUTexture;
332
+ }
333
+
293
334
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
294
335
  arrayLayerCount?: GPUIntegerCoordinate;
295
336
  aspect?: GPUTextureAspect;
@@ -4662,6 +4703,50 @@ declare var GPUQuerySet: {
4662
4703
  new(): GPUQuerySet;
4663
4704
  };
4664
4705
 
4706
+ /**
4707
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
4708
+ * Available only in secure contexts.
4709
+ *
4710
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
4711
+ */
4712
+ interface GPUQueue extends GPUObjectBase {
4713
+ /**
4714
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
4715
+ *
4716
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
4717
+ */
4718
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
4719
+ /**
4720
+ * 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.
4721
+ *
4722
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
4723
+ */
4724
+ onSubmittedWorkDone(): Promise<void>;
4725
+ /**
4726
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
4727
+ *
4728
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
4729
+ */
4730
+ submit(commandBuffers: GPUCommandBuffer[]): void;
4731
+ /**
4732
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
4733
+ *
4734
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
4735
+ */
4736
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
4737
+ /**
4738
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
4739
+ *
4740
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
4741
+ */
4742
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
4743
+ }
4744
+
4745
+ declare var GPUQueue: {
4746
+ prototype: GPUQueue;
4747
+ new(): GPUQueue;
4748
+ };
4749
+
4665
4750
  /**
4666
4751
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4667
4752
  * Available only in secure contexts.
@@ -12609,11 +12694,15 @@ type GLuint = number;
12609
12694
  type GLuint64 = number;
12610
12695
  type GPUBufferDynamicOffset = number;
12611
12696
  type GPUColor = number[] | GPUColorDict;
12697
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
12698
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
12612
12699
  type GPUFlagsConstant = number;
12613
12700
  type GPUIndex32 = number;
12614
12701
  type GPUIntegerCoordinate = number;
12615
12702
  type GPUIntegerCoordinateOut = number;
12616
12703
  type GPUMapModeFlags = number;
12704
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
12705
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
12617
12706
  type GPUSignedOffset32 = number;
12618
12707
  type GPUSize32 = number;
12619
12708
  type GPUSize32Out = number;
@@ -83,6 +83,27 @@ interface GPUBindingCommandsMixin {
83
83
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
84
84
  }
85
85
 
86
+ interface GPUQueue {
87
+ /**
88
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
89
+ *
90
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
91
+ */
92
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
93
+ /**
94
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
95
+ *
96
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
97
+ */
98
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
99
+ /**
100
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
101
+ *
102
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
103
+ */
104
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
105
+ }
106
+
86
107
  interface GPURenderPassEncoder {
87
108
  /**
88
109
  * 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
@@ -279,10 +279,38 @@ interface GPUColorDict {
279
279
  r: number;
280
280
  }
281
281
 
282
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
283
+ colorSpace?: PredefinedColorSpace;
284
+ premultipliedAlpha?: boolean;
285
+ }
286
+
287
+ interface GPUCopyExternalImageSourceInfo {
288
+ flipY?: boolean;
289
+ origin?: GPUOrigin2D;
290
+ source: GPUCopyExternalImageSource;
291
+ }
292
+
293
+ interface GPUExtent3DDict {
294
+ depthOrArrayLayers?: GPUIntegerCoordinate;
295
+ height?: GPUIntegerCoordinate;
296
+ width: GPUIntegerCoordinate;
297
+ }
298
+
282
299
  interface GPUObjectDescriptorBase {
283
300
  label?: string;
284
301
  }
285
302
 
303
+ interface GPUOrigin2DDict {
304
+ x?: GPUIntegerCoordinate;
305
+ y?: GPUIntegerCoordinate;
306
+ }
307
+
308
+ interface GPUOrigin3DDict {
309
+ x?: GPUIntegerCoordinate;
310
+ y?: GPUIntegerCoordinate;
311
+ z?: GPUIntegerCoordinate;
312
+ }
313
+
286
314
  interface GPUPipelineErrorInit {
287
315
  reason: GPUPipelineErrorReason;
288
316
  }
@@ -290,6 +318,19 @@ interface GPUPipelineErrorInit {
290
318
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
291
319
  }
292
320
 
321
+ interface GPUTexelCopyBufferLayout {
322
+ bytesPerRow?: GPUSize32;
323
+ offset?: GPUSize64;
324
+ rowsPerImage?: GPUSize32;
325
+ }
326
+
327
+ interface GPUTexelCopyTextureInfo {
328
+ aspect?: GPUTextureAspect;
329
+ mipLevel?: GPUIntegerCoordinate;
330
+ origin?: GPUOrigin3D;
331
+ texture: GPUTexture;
332
+ }
333
+
293
334
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
294
335
  arrayLayerCount?: GPUIntegerCoordinate;
295
336
  aspect?: GPUTextureAspect;
@@ -4662,6 +4703,50 @@ declare var GPUQuerySet: {
4662
4703
  new(): GPUQuerySet;
4663
4704
  };
4664
4705
 
4706
+ /**
4707
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
4708
+ * Available only in secure contexts.
4709
+ *
4710
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
4711
+ */
4712
+ interface GPUQueue extends GPUObjectBase {
4713
+ /**
4714
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
4715
+ *
4716
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
4717
+ */
4718
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
4719
+ /**
4720
+ * 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.
4721
+ *
4722
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
4723
+ */
4724
+ onSubmittedWorkDone(): Promise<void>;
4725
+ /**
4726
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
4727
+ *
4728
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
4729
+ */
4730
+ submit(commandBuffers: GPUCommandBuffer[]): void;
4731
+ /**
4732
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
4733
+ *
4734
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
4735
+ */
4736
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
4737
+ /**
4738
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
4739
+ *
4740
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
4741
+ */
4742
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
4743
+ }
4744
+
4745
+ declare var GPUQueue: {
4746
+ prototype: GPUQueue;
4747
+ new(): GPUQueue;
4748
+ };
4749
+
4665
4750
  /**
4666
4751
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4667
4752
  * Available only in secure contexts.
@@ -12609,11 +12694,15 @@ type GLuint = number;
12609
12694
  type GLuint64 = number;
12610
12695
  type GPUBufferDynamicOffset = number;
12611
12696
  type GPUColor = number[] | GPUColorDict;
12697
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
12698
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
12612
12699
  type GPUFlagsConstant = number;
12613
12700
  type GPUIndex32 = number;
12614
12701
  type GPUIntegerCoordinate = number;
12615
12702
  type GPUIntegerCoordinateOut = number;
12616
12703
  type GPUMapModeFlags = number;
12704
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
12705
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
12617
12706
  type GPUSignedOffset32 = number;
12618
12707
  type GPUSize32 = number;
12619
12708
  type GPUSize32Out = number;
@@ -87,6 +87,27 @@ interface GPUBindingCommandsMixin {
87
87
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
88
88
  }
89
89
 
90
+ interface GPUQueue {
91
+ /**
92
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
93
+ *
94
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
95
+ */
96
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
97
+ /**
98
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
99
+ *
100
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
101
+ */
102
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
103
+ /**
104
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
105
+ *
106
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
107
+ */
108
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
109
+ }
110
+
90
111
  interface GPURenderPassEncoder {
91
112
  /**
92
113
  * 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
@@ -279,10 +279,38 @@ interface GPUColorDict {
279
279
  r: number;
280
280
  }
281
281
 
282
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
283
+ colorSpace?: PredefinedColorSpace;
284
+ premultipliedAlpha?: boolean;
285
+ }
286
+
287
+ interface GPUCopyExternalImageSourceInfo {
288
+ flipY?: boolean;
289
+ origin?: GPUOrigin2D;
290
+ source: GPUCopyExternalImageSource;
291
+ }
292
+
293
+ interface GPUExtent3DDict {
294
+ depthOrArrayLayers?: GPUIntegerCoordinate;
295
+ height?: GPUIntegerCoordinate;
296
+ width: GPUIntegerCoordinate;
297
+ }
298
+
282
299
  interface GPUObjectDescriptorBase {
283
300
  label?: string;
284
301
  }
285
302
 
303
+ interface GPUOrigin2DDict {
304
+ x?: GPUIntegerCoordinate;
305
+ y?: GPUIntegerCoordinate;
306
+ }
307
+
308
+ interface GPUOrigin3DDict {
309
+ x?: GPUIntegerCoordinate;
310
+ y?: GPUIntegerCoordinate;
311
+ z?: GPUIntegerCoordinate;
312
+ }
313
+
286
314
  interface GPUPipelineErrorInit {
287
315
  reason: GPUPipelineErrorReason;
288
316
  }
@@ -290,6 +318,19 @@ interface GPUPipelineErrorInit {
290
318
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
291
319
  }
292
320
 
321
+ interface GPUTexelCopyBufferLayout {
322
+ bytesPerRow?: GPUSize32;
323
+ offset?: GPUSize64;
324
+ rowsPerImage?: GPUSize32;
325
+ }
326
+
327
+ interface GPUTexelCopyTextureInfo {
328
+ aspect?: GPUTextureAspect;
329
+ mipLevel?: GPUIntegerCoordinate;
330
+ origin?: GPUOrigin3D;
331
+ texture: GPUTexture;
332
+ }
333
+
293
334
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
294
335
  arrayLayerCount?: GPUIntegerCoordinate;
295
336
  aspect?: GPUTextureAspect;
@@ -4662,6 +4703,50 @@ declare var GPUQuerySet: {
4662
4703
  new(): GPUQuerySet;
4663
4704
  };
4664
4705
 
4706
+ /**
4707
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
4708
+ * Available only in secure contexts.
4709
+ *
4710
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
4711
+ */
4712
+ interface GPUQueue extends GPUObjectBase {
4713
+ /**
4714
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
4715
+ *
4716
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
4717
+ */
4718
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
4719
+ /**
4720
+ * 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.
4721
+ *
4722
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
4723
+ */
4724
+ onSubmittedWorkDone(): Promise<void>;
4725
+ /**
4726
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
4727
+ *
4728
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
4729
+ */
4730
+ submit(commandBuffers: GPUCommandBuffer[]): void;
4731
+ /**
4732
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
4733
+ *
4734
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
4735
+ */
4736
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
4737
+ /**
4738
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
4739
+ *
4740
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
4741
+ */
4742
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
4743
+ }
4744
+
4745
+ declare var GPUQueue: {
4746
+ prototype: GPUQueue;
4747
+ new(): GPUQueue;
4748
+ };
4749
+
4665
4750
  /**
4666
4751
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4667
4752
  * Available only in secure contexts.
@@ -12609,11 +12694,15 @@ type GLuint = number;
12609
12694
  type GLuint64 = number;
12610
12695
  type GPUBufferDynamicOffset = number;
12611
12696
  type GPUColor = number[] | GPUColorDict;
12697
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
12698
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
12612
12699
  type GPUFlagsConstant = number;
12613
12700
  type GPUIndex32 = number;
12614
12701
  type GPUIntegerCoordinate = number;
12615
12702
  type GPUIntegerCoordinateOut = number;
12616
12703
  type GPUMapModeFlags = number;
12704
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
12705
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
12617
12706
  type GPUSignedOffset32 = number;
12618
12707
  type GPUSize32 = number;
12619
12708
  type GPUSize32Out = number;
@@ -87,6 +87,27 @@ interface GPUBindingCommandsMixin {
87
87
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
88
88
  }
89
89
 
90
+ interface GPUQueue {
91
+ /**
92
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
93
+ *
94
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
95
+ */
96
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
97
+ /**
98
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
99
+ *
100
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
101
+ */
102
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
103
+ /**
104
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
105
+ *
106
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
107
+ */
108
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
109
+ }
110
+
90
111
  interface GPURenderPassEncoder {
91
112
  /**
92
113
  * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.