@types/webworker 0.0.61 → 0.0.63

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
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
45
45
 
46
46
  ## Deploy Metadata
47
47
 
48
- You can read what changed in version 0.0.61 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.61.
48
+ You can read what changed in version 0.0.63 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.63.
package/index.d.ts CHANGED
@@ -372,10 +372,38 @@ interface GPUColorDict {
372
372
  r: number;
373
373
  }
374
374
 
375
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
376
+ colorSpace?: PredefinedColorSpace;
377
+ premultipliedAlpha?: boolean;
378
+ }
379
+
380
+ interface GPUCopyExternalImageSourceInfo {
381
+ flipY?: boolean;
382
+ origin?: GPUOrigin2D;
383
+ source: GPUCopyExternalImageSource;
384
+ }
385
+
386
+ interface GPUExtent3DDict {
387
+ depthOrArrayLayers?: GPUIntegerCoordinate;
388
+ height?: GPUIntegerCoordinate;
389
+ width: GPUIntegerCoordinate;
390
+ }
391
+
375
392
  interface GPUObjectDescriptorBase {
376
393
  label?: string;
377
394
  }
378
395
 
396
+ interface GPUOrigin2DDict {
397
+ x?: GPUIntegerCoordinate;
398
+ y?: GPUIntegerCoordinate;
399
+ }
400
+
401
+ interface GPUOrigin3DDict {
402
+ x?: GPUIntegerCoordinate;
403
+ y?: GPUIntegerCoordinate;
404
+ z?: GPUIntegerCoordinate;
405
+ }
406
+
379
407
  interface GPUPipelineErrorInit {
380
408
  reason: GPUPipelineErrorReason;
381
409
  }
@@ -383,6 +411,19 @@ interface GPUPipelineErrorInit {
383
411
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
384
412
  }
385
413
 
414
+ interface GPUTexelCopyBufferLayout {
415
+ bytesPerRow?: GPUSize32;
416
+ offset?: GPUSize64;
417
+ rowsPerImage?: GPUSize32;
418
+ }
419
+
420
+ interface GPUTexelCopyTextureInfo {
421
+ aspect?: GPUTextureAspect;
422
+ mipLevel?: GPUIntegerCoordinate;
423
+ origin?: GPUOrigin3D;
424
+ texture: GPUTexture;
425
+ }
426
+
386
427
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
387
428
  arrayLayerCount?: GPUIntegerCoordinate;
388
429
  aspect?: GPUTextureAspect;
@@ -5367,6 +5408,50 @@ declare var GPUQuerySet: {
5367
5408
  new(): GPUQuerySet;
5368
5409
  };
5369
5410
 
5411
+ /**
5412
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
5413
+ * Available only in secure contexts.
5414
+ *
5415
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
5416
+ */
5417
+ interface GPUQueue extends GPUObjectBase {
5418
+ /**
5419
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
5420
+ *
5421
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
5422
+ */
5423
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
5424
+ /**
5425
+ * 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.
5426
+ *
5427
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
5428
+ */
5429
+ onSubmittedWorkDone(): Promise<void>;
5430
+ /**
5431
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
5432
+ *
5433
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
5434
+ */
5435
+ submit(commandBuffers: GPUCommandBuffer[]): void;
5436
+ /**
5437
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
5438
+ *
5439
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
5440
+ */
5441
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
5442
+ /**
5443
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
5444
+ *
5445
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
5446
+ */
5447
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
5448
+ }
5449
+
5450
+ declare var GPUQueue: {
5451
+ prototype: GPUQueue;
5452
+ new(): GPUQueue;
5453
+ };
5454
+
5370
5455
  /**
5371
5456
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
5372
5457
  * Available only in secure contexts.
@@ -14289,11 +14374,15 @@ type GLuint = number;
14289
14374
  type GLuint64 = number;
14290
14375
  type GPUBufferDynamicOffset = number;
14291
14376
  type GPUColor = number[] | GPUColorDict;
14377
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14378
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
14292
14379
  type GPUFlagsConstant = number;
14293
14380
  type GPUIndex32 = number;
14294
14381
  type GPUIntegerCoordinate = number;
14295
14382
  type GPUIntegerCoordinateOut = number;
14296
14383
  type GPUMapModeFlags = number;
14384
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14385
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14297
14386
  type GPUSignedOffset32 = number;
14298
14387
  type GPUSize32 = number;
14299
14388
  type GPUSize32Out = number;
@@ -14456,17 +14545,17 @@ interface Cache {
14456
14545
  *
14457
14546
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
14458
14547
  */
14459
- addAll(requests: RequestInfo[]): Promise<void>;
14548
+ addAll(requests: Iterable<RequestInfo>): Promise<void>;
14460
14549
  }
14461
14550
 
14462
14551
  interface CanvasPath {
14463
14552
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
14464
- roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
14553
+ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
14465
14554
  }
14466
14555
 
14467
14556
  interface CanvasPathDrawingStyles {
14468
14557
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
14469
- setLineDash(segments: number[]): void;
14558
+ setLineDash(segments: Iterable<number>): void;
14470
14559
  }
14471
14560
 
14472
14561
  interface CookieStoreManager {
@@ -14475,13 +14564,13 @@ interface CookieStoreManager {
14475
14564
  *
14476
14565
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
14477
14566
  */
14478
- subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
14567
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
14479
14568
  /**
14480
14569
  * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
14481
14570
  *
14482
14571
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
14483
14572
  */
14484
- unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
14573
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
14485
14574
  }
14486
14575
 
14487
14576
  interface DOMStringList {
@@ -14511,7 +14600,28 @@ interface FormData {
14511
14600
 
14512
14601
  interface GPUBindingCommandsMixin {
14513
14602
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
14514
- setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
14603
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
14604
+ }
14605
+
14606
+ interface GPUQueue {
14607
+ /**
14608
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
14609
+ *
14610
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
14611
+ */
14612
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
14613
+ /**
14614
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
14615
+ *
14616
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
14617
+ */
14618
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
14619
+ /**
14620
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
14621
+ *
14622
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
14623
+ */
14624
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
14515
14625
  }
14516
14626
 
14517
14627
  interface GPURenderPassEncoder {
@@ -14520,13 +14630,13 @@ interface GPURenderPassEncoder {
14520
14630
  *
14521
14631
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
14522
14632
  */
14523
- executeBundles(bundles: GPURenderBundle[]): void;
14633
+ executeBundles(bundles: Iterable<GPURenderBundle>): void;
14524
14634
  /**
14525
14635
  * 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).
14526
14636
  *
14527
14637
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
14528
14638
  */
14529
- setBlendConstant(color: number[]): void;
14639
+ setBlendConstant(color: Iterable<number>): void;
14530
14640
  }
14531
14641
 
14532
14642
  interface GPUSupportedFeatures extends ReadonlySet<string> {
@@ -14552,7 +14662,7 @@ interface IDBDatabase {
14552
14662
  *
14553
14663
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
14554
14664
  */
14555
- transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
14665
+ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
14556
14666
  }
14557
14667
 
14558
14668
  interface IDBObjectStore {
@@ -14561,7 +14671,7 @@ interface IDBObjectStore {
14561
14671
  *
14562
14672
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
14563
14673
  */
14564
- createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
14674
+ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
14565
14675
  }
14566
14676
 
14567
14677
  interface ImageTrackList {
@@ -14570,7 +14680,7 @@ interface ImageTrackList {
14570
14680
 
14571
14681
  interface MessageEvent<T = any> {
14572
14682
  /** @deprecated */
14573
- initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
14683
+ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
14574
14684
  }
14575
14685
 
14576
14686
  interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
@@ -14578,10 +14688,10 @@ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinI
14578
14688
  }
14579
14689
 
14580
14690
  interface StylePropertyMapReadOnly {
14581
- [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>;
14582
- entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>;
14691
+ [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
14692
+ entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
14583
14693
  keys(): StylePropertyMapReadOnlyIterator<string>;
14584
- values(): StylePropertyMapReadOnlyIterator<CSSStyleValue[]>;
14694
+ values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
14585
14695
  }
14586
14696
 
14587
14697
  interface SubtleCrypto {
@@ -14590,7 +14700,7 @@ interface SubtleCrypto {
14590
14700
  *
14591
14701
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
14592
14702
  */
14593
- deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
14703
+ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
14594
14704
  /**
14595
14705
  * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
14596
14706
  *
@@ -14600,20 +14710,20 @@ interface SubtleCrypto {
14600
14710
  generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
14601
14711
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
14602
14712
  generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
14603
- generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
14713
+ generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
14604
14714
  /**
14605
14715
  * 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.
14606
14716
  *
14607
14717
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
14608
14718
  */
14609
14719
  importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
14610
- importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
14720
+ importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
14611
14721
  /**
14612
14722
  * 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.
14613
14723
  *
14614
14724
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
14615
14725
  */
14616
- 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>;
14726
+ 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>;
14617
14727
  }
14618
14728
 
14619
14729
  interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
@@ -14636,7 +14746,7 @@ interface WEBGL_draw_buffers {
14636
14746
  *
14637
14747
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
14638
14748
  */
14639
- drawBuffersWEBGL(buffers: GLenum[]): void;
14749
+ drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
14640
14750
  }
14641
14751
 
14642
14752
  interface WEBGL_multi_draw {
@@ -14645,25 +14755,25 @@ interface WEBGL_multi_draw {
14645
14755
  *
14646
14756
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
14647
14757
  */
14648
- multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
14758
+ 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;
14649
14759
  /**
14650
14760
  * 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.
14651
14761
  *
14652
14762
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
14653
14763
  */
14654
- multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
14764
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
14655
14765
  /**
14656
14766
  * 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.
14657
14767
  *
14658
14768
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
14659
14769
  */
14660
- 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;
14770
+ 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;
14661
14771
  /**
14662
14772
  * 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.
14663
14773
  *
14664
14774
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
14665
14775
  */
14666
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
14776
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
14667
14777
  }
14668
14778
 
14669
14779
  interface WGSLLanguageFeatures extends ReadonlySet<string> {
@@ -14671,108 +14781,108 @@ interface WGSLLanguageFeatures extends ReadonlySet<string> {
14671
14781
 
14672
14782
  interface WebGL2RenderingContextBase {
14673
14783
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
14674
- clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
14784
+ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
14675
14785
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
14676
- clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: GLint[], srcOffset?: number): void;
14786
+ clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
14677
14787
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
14678
- clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: GLuint[], srcOffset?: number): void;
14788
+ clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
14679
14789
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
14680
- drawBuffers(buffers: GLenum[]): void;
14790
+ drawBuffers(buffers: Iterable<GLenum>): void;
14681
14791
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
14682
- getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
14792
+ getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
14683
14793
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
14684
- getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
14794
+ getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
14685
14795
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
14686
- invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
14796
+ invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
14687
14797
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
14688
- invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
14798
+ invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
14689
14799
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
14690
- transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
14800
+ transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
14691
14801
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
14692
- uniform1uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
14802
+ uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
14693
14803
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
14694
- uniform2uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
14804
+ uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
14695
14805
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
14696
- uniform3uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
14806
+ uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
14697
14807
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
14698
- uniform4uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
14808
+ uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
14699
14809
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
14700
- uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14810
+ uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14701
14811
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
14702
- uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14812
+ uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14703
14813
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
14704
- uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14814
+ uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14705
14815
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
14706
- uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14816
+ uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14707
14817
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
14708
- uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14818
+ uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14709
14819
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
14710
- uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14820
+ uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14711
14821
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
14712
- vertexAttribI4iv(index: GLuint, values: GLint[]): void;
14822
+ vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
14713
14823
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
14714
- vertexAttribI4uiv(index: GLuint, values: GLuint[]): void;
14824
+ vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
14715
14825
  }
14716
14826
 
14717
14827
  interface WebGL2RenderingContextOverloads {
14718
14828
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14719
- uniform1fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14829
+ uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14720
14830
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14721
- uniform1iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
14831
+ uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
14722
14832
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14723
- uniform2fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14833
+ uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14724
14834
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14725
- uniform2iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
14835
+ uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
14726
14836
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14727
- uniform3fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14837
+ uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14728
14838
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14729
- uniform3iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
14839
+ uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
14730
14840
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14731
- uniform4fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14841
+ uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14732
14842
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14733
- uniform4iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
14843
+ uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
14734
14844
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
14735
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14845
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14736
14846
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
14737
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14847
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14738
14848
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
14739
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
14849
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
14740
14850
  }
14741
14851
 
14742
14852
  interface WebGLRenderingContextBase {
14743
14853
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
14744
- vertexAttrib1fv(index: GLuint, values: GLfloat[]): void;
14854
+ vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
14745
14855
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
14746
- vertexAttrib2fv(index: GLuint, values: GLfloat[]): void;
14856
+ vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
14747
14857
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
14748
- vertexAttrib3fv(index: GLuint, values: GLfloat[]): void;
14858
+ vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
14749
14859
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
14750
- vertexAttrib4fv(index: GLuint, values: GLfloat[]): void;
14860
+ vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
14751
14861
  }
14752
14862
 
14753
14863
  interface WebGLRenderingContextOverloads {
14754
14864
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14755
- uniform1fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
14865
+ uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
14756
14866
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14757
- uniform1iv(location: WebGLUniformLocation | null, v: GLint[]): void;
14867
+ uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
14758
14868
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14759
- uniform2fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
14869
+ uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
14760
14870
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14761
- uniform2iv(location: WebGLUniformLocation | null, v: GLint[]): void;
14871
+ uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
14762
14872
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14763
- uniform3fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
14873
+ uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
14764
14874
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14765
- uniform3iv(location: WebGLUniformLocation | null, v: GLint[]): void;
14875
+ uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
14766
14876
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14767
- uniform4fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
14877
+ uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
14768
14878
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
14769
- uniform4iv(location: WebGLUniformLocation | null, v: GLint[]): void;
14879
+ uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
14770
14880
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
14771
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
14881
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
14772
14882
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
14773
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
14883
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
14774
14884
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
14775
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
14885
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
14776
14886
  }
14777
14887
 
14778
14888
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -369,10 +369,38 @@ interface GPUColorDict {
369
369
  r: number;
370
370
  }
371
371
 
372
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
373
+ colorSpace?: PredefinedColorSpace;
374
+ premultipliedAlpha?: boolean;
375
+ }
376
+
377
+ interface GPUCopyExternalImageSourceInfo {
378
+ flipY?: boolean;
379
+ origin?: GPUOrigin2D;
380
+ source: GPUCopyExternalImageSource;
381
+ }
382
+
383
+ interface GPUExtent3DDict {
384
+ depthOrArrayLayers?: GPUIntegerCoordinate;
385
+ height?: GPUIntegerCoordinate;
386
+ width: GPUIntegerCoordinate;
387
+ }
388
+
372
389
  interface GPUObjectDescriptorBase {
373
390
  label?: string;
374
391
  }
375
392
 
393
+ interface GPUOrigin2DDict {
394
+ x?: GPUIntegerCoordinate;
395
+ y?: GPUIntegerCoordinate;
396
+ }
397
+
398
+ interface GPUOrigin3DDict {
399
+ x?: GPUIntegerCoordinate;
400
+ y?: GPUIntegerCoordinate;
401
+ z?: GPUIntegerCoordinate;
402
+ }
403
+
376
404
  interface GPUPipelineErrorInit {
377
405
  reason: GPUPipelineErrorReason;
378
406
  }
@@ -380,6 +408,19 @@ interface GPUPipelineErrorInit {
380
408
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
381
409
  }
382
410
 
411
+ interface GPUTexelCopyBufferLayout {
412
+ bytesPerRow?: GPUSize32;
413
+ offset?: GPUSize64;
414
+ rowsPerImage?: GPUSize32;
415
+ }
416
+
417
+ interface GPUTexelCopyTextureInfo {
418
+ aspect?: GPUTextureAspect;
419
+ mipLevel?: GPUIntegerCoordinate;
420
+ origin?: GPUOrigin3D;
421
+ texture: GPUTexture;
422
+ }
423
+
383
424
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
384
425
  arrayLayerCount?: GPUIntegerCoordinate;
385
426
  aspect?: GPUTextureAspect;
@@ -5364,6 +5405,50 @@ declare var GPUQuerySet: {
5364
5405
  new(): GPUQuerySet;
5365
5406
  };
5366
5407
 
5408
+ /**
5409
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
5410
+ * Available only in secure contexts.
5411
+ *
5412
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
5413
+ */
5414
+ interface GPUQueue extends GPUObjectBase {
5415
+ /**
5416
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
5417
+ *
5418
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
5419
+ */
5420
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
5421
+ /**
5422
+ * 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.
5423
+ *
5424
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
5425
+ */
5426
+ onSubmittedWorkDone(): Promise<void>;
5427
+ /**
5428
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
5429
+ *
5430
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
5431
+ */
5432
+ submit(commandBuffers: GPUCommandBuffer[]): void;
5433
+ /**
5434
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
5435
+ *
5436
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
5437
+ */
5438
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
5439
+ /**
5440
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
5441
+ *
5442
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
5443
+ */
5444
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
5445
+ }
5446
+
5447
+ declare var GPUQueue: {
5448
+ prototype: GPUQueue;
5449
+ new(): GPUQueue;
5450
+ };
5451
+
5367
5452
  /**
5368
5453
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
5369
5454
  * Available only in secure contexts.
@@ -14286,11 +14371,15 @@ type GLuint = number;
14286
14371
  type GLuint64 = number;
14287
14372
  type GPUBufferDynamicOffset = number;
14288
14373
  type GPUColor = number[] | GPUColorDict;
14374
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14375
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
14289
14376
  type GPUFlagsConstant = number;
14290
14377
  type GPUIndex32 = number;
14291
14378
  type GPUIntegerCoordinate = number;
14292
14379
  type GPUIntegerCoordinateOut = number;
14293
14380
  type GPUMapModeFlags = number;
14381
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14382
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14294
14383
  type GPUSignedOffset32 = number;
14295
14384
  type GPUSize32 = number;
14296
14385
  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
@@ -369,10 +369,38 @@ interface GPUColorDict {
369
369
  r: number;
370
370
  }
371
371
 
372
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
373
+ colorSpace?: PredefinedColorSpace;
374
+ premultipliedAlpha?: boolean;
375
+ }
376
+
377
+ interface GPUCopyExternalImageSourceInfo {
378
+ flipY?: boolean;
379
+ origin?: GPUOrigin2D;
380
+ source: GPUCopyExternalImageSource;
381
+ }
382
+
383
+ interface GPUExtent3DDict {
384
+ depthOrArrayLayers?: GPUIntegerCoordinate;
385
+ height?: GPUIntegerCoordinate;
386
+ width: GPUIntegerCoordinate;
387
+ }
388
+
372
389
  interface GPUObjectDescriptorBase {
373
390
  label?: string;
374
391
  }
375
392
 
393
+ interface GPUOrigin2DDict {
394
+ x?: GPUIntegerCoordinate;
395
+ y?: GPUIntegerCoordinate;
396
+ }
397
+
398
+ interface GPUOrigin3DDict {
399
+ x?: GPUIntegerCoordinate;
400
+ y?: GPUIntegerCoordinate;
401
+ z?: GPUIntegerCoordinate;
402
+ }
403
+
376
404
  interface GPUPipelineErrorInit {
377
405
  reason: GPUPipelineErrorReason;
378
406
  }
@@ -380,6 +408,19 @@ interface GPUPipelineErrorInit {
380
408
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
381
409
  }
382
410
 
411
+ interface GPUTexelCopyBufferLayout {
412
+ bytesPerRow?: GPUSize32;
413
+ offset?: GPUSize64;
414
+ rowsPerImage?: GPUSize32;
415
+ }
416
+
417
+ interface GPUTexelCopyTextureInfo {
418
+ aspect?: GPUTextureAspect;
419
+ mipLevel?: GPUIntegerCoordinate;
420
+ origin?: GPUOrigin3D;
421
+ texture: GPUTexture;
422
+ }
423
+
383
424
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
384
425
  arrayLayerCount?: GPUIntegerCoordinate;
385
426
  aspect?: GPUTextureAspect;
@@ -5364,6 +5405,50 @@ declare var GPUQuerySet: {
5364
5405
  new(): GPUQuerySet;
5365
5406
  };
5366
5407
 
5408
+ /**
5409
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
5410
+ * Available only in secure contexts.
5411
+ *
5412
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
5413
+ */
5414
+ interface GPUQueue extends GPUObjectBase {
5415
+ /**
5416
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
5417
+ *
5418
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
5419
+ */
5420
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
5421
+ /**
5422
+ * 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.
5423
+ *
5424
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
5425
+ */
5426
+ onSubmittedWorkDone(): Promise<void>;
5427
+ /**
5428
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
5429
+ *
5430
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
5431
+ */
5432
+ submit(commandBuffers: GPUCommandBuffer[]): void;
5433
+ /**
5434
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
5435
+ *
5436
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
5437
+ */
5438
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
5439
+ /**
5440
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
5441
+ *
5442
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
5443
+ */
5444
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
5445
+ }
5446
+
5447
+ declare var GPUQueue: {
5448
+ prototype: GPUQueue;
5449
+ new(): GPUQueue;
5450
+ };
5451
+
5367
5452
  /**
5368
5453
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
5369
5454
  * Available only in secure contexts.
@@ -14286,11 +14371,15 @@ type GLuint = number;
14286
14371
  type GLuint64 = number;
14287
14372
  type GPUBufferDynamicOffset = number;
14288
14373
  type GPUColor = number[] | GPUColorDict;
14374
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14375
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
14289
14376
  type GPUFlagsConstant = number;
14290
14377
  type GPUIndex32 = number;
14291
14378
  type GPUIntegerCoordinate = number;
14292
14379
  type GPUIntegerCoordinateOut = number;
14293
14380
  type GPUMapModeFlags = number;
14381
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14382
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14294
14383
  type GPUSignedOffset32 = number;
14295
14384
  type GPUSize32 = number;
14296
14385
  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
@@ -369,10 +369,38 @@ interface GPUColorDict {
369
369
  r: number;
370
370
  }
371
371
 
372
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
373
+ colorSpace?: PredefinedColorSpace;
374
+ premultipliedAlpha?: boolean;
375
+ }
376
+
377
+ interface GPUCopyExternalImageSourceInfo {
378
+ flipY?: boolean;
379
+ origin?: GPUOrigin2D;
380
+ source: GPUCopyExternalImageSource;
381
+ }
382
+
383
+ interface GPUExtent3DDict {
384
+ depthOrArrayLayers?: GPUIntegerCoordinate;
385
+ height?: GPUIntegerCoordinate;
386
+ width: GPUIntegerCoordinate;
387
+ }
388
+
372
389
  interface GPUObjectDescriptorBase {
373
390
  label?: string;
374
391
  }
375
392
 
393
+ interface GPUOrigin2DDict {
394
+ x?: GPUIntegerCoordinate;
395
+ y?: GPUIntegerCoordinate;
396
+ }
397
+
398
+ interface GPUOrigin3DDict {
399
+ x?: GPUIntegerCoordinate;
400
+ y?: GPUIntegerCoordinate;
401
+ z?: GPUIntegerCoordinate;
402
+ }
403
+
376
404
  interface GPUPipelineErrorInit {
377
405
  reason: GPUPipelineErrorReason;
378
406
  }
@@ -380,6 +408,19 @@ interface GPUPipelineErrorInit {
380
408
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
381
409
  }
382
410
 
411
+ interface GPUTexelCopyBufferLayout {
412
+ bytesPerRow?: GPUSize32;
413
+ offset?: GPUSize64;
414
+ rowsPerImage?: GPUSize32;
415
+ }
416
+
417
+ interface GPUTexelCopyTextureInfo {
418
+ aspect?: GPUTextureAspect;
419
+ mipLevel?: GPUIntegerCoordinate;
420
+ origin?: GPUOrigin3D;
421
+ texture: GPUTexture;
422
+ }
423
+
383
424
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
384
425
  arrayLayerCount?: GPUIntegerCoordinate;
385
426
  aspect?: GPUTextureAspect;
@@ -5364,6 +5405,50 @@ declare var GPUQuerySet: {
5364
5405
  new(): GPUQuerySet;
5365
5406
  };
5366
5407
 
5408
+ /**
5409
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
5410
+ * Available only in secure contexts.
5411
+ *
5412
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
5413
+ */
5414
+ interface GPUQueue extends GPUObjectBase {
5415
+ /**
5416
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
5417
+ *
5418
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
5419
+ */
5420
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
5421
+ /**
5422
+ * 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.
5423
+ *
5424
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
5425
+ */
5426
+ onSubmittedWorkDone(): Promise<void>;
5427
+ /**
5428
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
5429
+ *
5430
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
5431
+ */
5432
+ submit(commandBuffers: GPUCommandBuffer[]): void;
5433
+ /**
5434
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
5435
+ *
5436
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
5437
+ */
5438
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
5439
+ /**
5440
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
5441
+ *
5442
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
5443
+ */
5444
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
5445
+ }
5446
+
5447
+ declare var GPUQueue: {
5448
+ prototype: GPUQueue;
5449
+ new(): GPUQueue;
5450
+ };
5451
+
5367
5452
  /**
5368
5453
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
5369
5454
  * Available only in secure contexts.
@@ -14286,11 +14371,15 @@ type GLuint = number;
14286
14371
  type GLuint64 = number;
14287
14372
  type GPUBufferDynamicOffset = number;
14288
14373
  type GPUColor = number[] | GPUColorDict;
14374
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14375
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
14289
14376
  type GPUFlagsConstant = number;
14290
14377
  type GPUIndex32 = number;
14291
14378
  type GPUIntegerCoordinate = number;
14292
14379
  type GPUIntegerCoordinateOut = number;
14293
14380
  type GPUMapModeFlags = number;
14381
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14382
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14294
14383
  type GPUSignedOffset32 = number;
14295
14384
  type GPUSize32 = number;
14296
14385
  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.