@types/serviceworker 0.0.184 → 0.0.186

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.184 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.184.
31
+ You can read what changed in version 0.0.186 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.186.
package/index.d.ts CHANGED
@@ -275,6 +275,36 @@ interface FontFaceSetLoadEventInit extends EventInit {
275
275
  fontfaces?: FontFace[];
276
276
  }
277
277
 
278
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
279
+ entries: GPUBindGroupEntry[];
280
+ layout: GPUBindGroupLayout;
281
+ }
282
+
283
+ interface GPUBindGroupEntry {
284
+ binding: GPUIndex32;
285
+ resource: GPUBindingResource;
286
+ }
287
+
288
+ interface GPUBufferBinding {
289
+ buffer: GPUBuffer;
290
+ offset?: GPUSize64;
291
+ size?: GPUSize64;
292
+ }
293
+
294
+ interface GPUCanvasConfiguration {
295
+ alphaMode?: GPUCanvasAlphaMode;
296
+ colorSpace?: PredefinedColorSpace;
297
+ device: GPUDevice;
298
+ format: GPUTextureFormat;
299
+ toneMapping?: GPUCanvasToneMapping;
300
+ usage?: GPUTextureUsageFlags;
301
+ viewFormats?: GPUTextureFormat[];
302
+ }
303
+
304
+ interface GPUCanvasToneMapping {
305
+ mode?: GPUCanvasToneMappingMode;
306
+ }
307
+
278
308
  interface GPUColorDict {
279
309
  a: number;
280
310
  b: number;
@@ -282,6 +312,19 @@ interface GPUColorDict {
282
312
  r: number;
283
313
  }
284
314
 
315
+ interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
316
+ }
317
+
318
+ interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
319
+ timestampWrites?: GPUComputePassTimestampWrites;
320
+ }
321
+
322
+ interface GPUComputePassTimestampWrites {
323
+ beginningOfPassWriteIndex?: GPUSize32;
324
+ endOfPassWriteIndex?: GPUSize32;
325
+ querySet: GPUQuerySet;
326
+ }
327
+
285
328
  interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
286
329
  colorSpace?: PredefinedColorSpace;
287
330
  premultipliedAlpha?: boolean;
@@ -299,6 +342,10 @@ interface GPUExtent3DDict {
299
342
  width: GPUIntegerCoordinate;
300
343
  }
301
344
 
345
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
346
+ colorSpace?: PredefinedColorSpace;
347
+ }
348
+
302
349
  interface GPUObjectDescriptorBase {
303
350
  label?: string;
304
351
  }
@@ -321,6 +368,45 @@ interface GPUPipelineErrorInit {
321
368
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
322
369
  }
323
370
 
371
+ interface GPURenderPassColorAttachment {
372
+ clearValue?: GPUColor;
373
+ depthSlice?: GPUIntegerCoordinate;
374
+ loadOp: GPULoadOp;
375
+ resolveTarget?: GPUTexture | GPUTextureView;
376
+ storeOp: GPUStoreOp;
377
+ view: GPUTexture | GPUTextureView;
378
+ }
379
+
380
+ interface GPURenderPassDepthStencilAttachment {
381
+ depthClearValue?: number;
382
+ depthLoadOp?: GPULoadOp;
383
+ depthReadOnly?: boolean;
384
+ depthStoreOp?: GPUStoreOp;
385
+ stencilClearValue?: GPUStencilValue;
386
+ stencilLoadOp?: GPULoadOp;
387
+ stencilReadOnly?: boolean;
388
+ stencilStoreOp?: GPUStoreOp;
389
+ view: GPUTexture | GPUTextureView;
390
+ }
391
+
392
+ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
393
+ colorAttachments: (GPURenderPassColorAttachment | null)[];
394
+ depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
395
+ maxDrawCount?: GPUSize64;
396
+ occlusionQuerySet?: GPUQuerySet;
397
+ timestampWrites?: GPURenderPassTimestampWrites;
398
+ }
399
+
400
+ interface GPURenderPassTimestampWrites {
401
+ beginningOfPassWriteIndex?: GPUSize32;
402
+ endOfPassWriteIndex?: GPUSize32;
403
+ querySet: GPUQuerySet;
404
+ }
405
+
406
+ interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
407
+ buffer: GPUBuffer;
408
+ }
409
+
324
410
  interface GPUTexelCopyBufferLayout {
325
411
  bytesPerRow?: GPUSize32;
326
412
  offset?: GPUSize64;
@@ -4397,6 +4483,50 @@ declare var GPUBuffer: {
4397
4483
  new(): GPUBuffer;
4398
4484
  };
4399
4485
 
4486
+ /**
4487
+ * The **`GPUCanvasContext`** interface of the WebGPU API represents the WebGPU rendering context of a <canvas> element, returned via an HTMLCanvasElement.getContext() call with a contextType of "webgpu".
4488
+ * Available only in secure contexts.
4489
+ *
4490
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
4491
+ */
4492
+ interface GPUCanvasContext {
4493
+ /**
4494
+ * The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
4495
+ *
4496
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
4497
+ */
4498
+ readonly canvas: OffscreenCanvas;
4499
+ /**
4500
+ * The **`configure()`** method of the GPUCanvasContext interface configures the context to use for rendering with a given GPUDevice. When called the canvas will initially be cleared to transparent black.
4501
+ *
4502
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
4503
+ */
4504
+ configure(configuration: GPUCanvasConfiguration): void;
4505
+ /**
4506
+ * The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
4507
+ *
4508
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
4509
+ */
4510
+ getConfiguration(): GPUCanvasConfiguration | null;
4511
+ /**
4512
+ * The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
4513
+ *
4514
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
4515
+ */
4516
+ getCurrentTexture(): GPUTexture;
4517
+ /**
4518
+ * The **`unconfigure()`** method of the GPUCanvasContext interface removes any previously-set context configuration, and destroys any textures returned via getCurrentTexture() while the canvas context was configured.
4519
+ *
4520
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
4521
+ */
4522
+ unconfigure(): void;
4523
+ }
4524
+
4525
+ declare var GPUCanvasContext: {
4526
+ prototype: GPUCanvasContext;
4527
+ new(): GPUCanvasContext;
4528
+ };
4529
+
4400
4530
  /**
4401
4531
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
4402
4532
  * Available only in secure contexts.
@@ -4411,6 +4541,75 @@ declare var GPUCommandBuffer: {
4411
4541
  new(): GPUCommandBuffer;
4412
4542
  };
4413
4543
 
4544
+ /**
4545
+ * The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
4546
+ * Available only in secure contexts.
4547
+ *
4548
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
4549
+ */
4550
+ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
4551
+ /**
4552
+ * The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
4553
+ *
4554
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
4555
+ */
4556
+ beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
4557
+ /**
4558
+ * The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
4559
+ *
4560
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
4561
+ */
4562
+ beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
4563
+ /**
4564
+ * The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
4565
+ *
4566
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
4567
+ */
4568
+ clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
4569
+ /**
4570
+ * The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
4571
+ *
4572
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
4573
+ */
4574
+ copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
4575
+ copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
4576
+ /**
4577
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
4578
+ *
4579
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
4580
+ */
4581
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
4582
+ /**
4583
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
4584
+ *
4585
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
4586
+ */
4587
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
4588
+ /**
4589
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
4590
+ *
4591
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
4592
+ */
4593
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
4594
+ /**
4595
+ * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
4596
+ *
4597
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
4598
+ */
4599
+ finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
4600
+ /**
4601
+ * The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
4602
+ *
4603
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
4604
+ */
4605
+ resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
4606
+ }
4607
+
4608
+ declare var GPUCommandEncoder: {
4609
+ prototype: GPUCommandEncoder;
4610
+ new(): GPUCommandEncoder;
4611
+ };
4612
+
4414
4613
  /**
4415
4614
  * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code.
4416
4615
  * Available only in secure contexts.
@@ -4542,6 +4741,90 @@ interface GPUDebugCommandsMixin {
4542
4741
  pushDebugGroup(groupLabel: string): void;
4543
4742
  }
4544
4743
 
4744
+ interface GPUDeviceEventMap {
4745
+ "uncapturederror": GPUUncapturedErrorEvent;
4746
+ }
4747
+
4748
+ /**
4749
+ * The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
4750
+ * Available only in secure contexts.
4751
+ *
4752
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
4753
+ */
4754
+ interface GPUDevice extends EventTarget, GPUObjectBase {
4755
+ /**
4756
+ * The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
4757
+ *
4758
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
4759
+ */
4760
+ readonly adapterInfo: GPUAdapterInfo;
4761
+ /**
4762
+ * The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
4763
+ *
4764
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
4765
+ */
4766
+ readonly features: GPUSupportedFeatures;
4767
+ /**
4768
+ * The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
4769
+ *
4770
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
4771
+ */
4772
+ readonly limits: GPUSupportedLimits;
4773
+ /**
4774
+ * The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
4775
+ *
4776
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
4777
+ */
4778
+ readonly lost: Promise<GPUDeviceLostInfo>;
4779
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
4780
+ onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
4781
+ /**
4782
+ * The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
4783
+ *
4784
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
4785
+ */
4786
+ readonly queue: GPUQueue;
4787
+ /**
4788
+ * The **`createBindGroup()`** method of the GPUDevice interface creates a GPUBindGroup based on a GPUBindGroupLayout that defines a set of resources to be bound together in a group and how those resources are used in shader stages.
4789
+ *
4790
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
4791
+ */
4792
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
4793
+ /**
4794
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
4795
+ *
4796
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
4797
+ */
4798
+ destroy(): void;
4799
+ /**
4800
+ * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.
4801
+ *
4802
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
4803
+ */
4804
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
4805
+ /**
4806
+ * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.
4807
+ *
4808
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
4809
+ */
4810
+ popErrorScope(): Promise<GPUError | null>;
4811
+ /**
4812
+ * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
4813
+ *
4814
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
4815
+ */
4816
+ pushErrorScope(filter: GPUErrorFilter): void;
4817
+ addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
4818
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
4819
+ removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
4820
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
4821
+ }
4822
+
4823
+ declare var GPUDevice: {
4824
+ prototype: GPUDevice;
4825
+ new(): GPUDevice;
4826
+ };
4827
+
4545
4828
  /**
4546
4829
  * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
4547
4830
  * Available only in secure contexts.
@@ -12695,6 +12978,7 @@ type GLsizei = number;
12695
12978
  type GLsizeiptr = number;
12696
12979
  type GLuint = number;
12697
12980
  type GLuint64 = number;
12981
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
12698
12982
  type GPUBufferDynamicOffset = number;
12699
12983
  type GPUColor = number[] | GPUColorDict;
12700
12984
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
@@ -12721,7 +13005,7 @@ type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
12721
13005
  type Int32List = Int32Array<ArrayBufferLike> | GLint[];
12722
13006
  type MessageEventSource = MessagePort | ServiceWorker;
12723
13007
  type NamedCurve = string;
12724
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
13008
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
12725
13009
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
12726
13010
  type PerformanceEntryList = PerformanceEntry[];
12727
13011
  type PushMessageDataInit = BufferSource | string;
@@ -12762,11 +13046,16 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
12762
13046
  type FontFaceSetLoadStatus = "loaded" | "loading";
12763
13047
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
12764
13048
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
13049
+ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
13050
+ type GPUCanvasToneMappingMode = "extended" | "standard";
12765
13051
  type GPUCompilationMessageType = "error" | "info" | "warning";
12766
13052
  type GPUDeviceLostReason = "destroyed" | "unknown";
13053
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
12767
13054
  type GPUIndexFormat = "uint16" | "uint32";
13055
+ type GPULoadOp = "clear" | "load";
12768
13056
  type GPUPipelineErrorReason = "internal" | "validation";
12769
13057
  type GPUQueryType = "occlusion" | "timestamp";
13058
+ type GPUStoreOp = "discard" | "store";
12770
13059
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12771
13060
  type GPUTextureDimension = "1d" | "2d" | "3d";
12772
13061
  type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
@@ -12907,6 +13196,27 @@ interface GPUBindingCommandsMixin {
12907
13196
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
12908
13197
  }
12909
13198
 
13199
+ interface GPUCommandEncoder {
13200
+ /**
13201
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
13202
+ *
13203
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
13204
+ */
13205
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
13206
+ /**
13207
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
13208
+ *
13209
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
13210
+ */
13211
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
13212
+ /**
13213
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
13214
+ *
13215
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
13216
+ */
13217
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
13218
+ }
13219
+
12910
13220
  interface GPUQueue {
12911
13221
  /**
12912
13222
  * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.184",
3
+ "version": "0.0.186",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],