@types/serviceworker 0.0.183 → 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.183 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.183.
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;
@@ -12818,6 +12907,27 @@ interface GPUBindingCommandsMixin {
12818
12907
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
12819
12908
  }
12820
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;
12929
+ }
12930
+
12821
12931
  interface GPURenderPassEncoder {
12822
12932
  /**
12823
12933
  * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.183",
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.