@types/webworker 0.0.63 → 0.0.65

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.63 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.63.
48
+ You can read what changed in version 0.0.65 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.65.
package/index.d.ts CHANGED
@@ -365,6 +365,36 @@ interface FontFaceSetLoadEventInit extends EventInit {
365
365
  fontfaces?: FontFace[];
366
366
  }
367
367
 
368
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
369
+ entries: GPUBindGroupEntry[];
370
+ layout: GPUBindGroupLayout;
371
+ }
372
+
373
+ interface GPUBindGroupEntry {
374
+ binding: GPUIndex32;
375
+ resource: GPUBindingResource;
376
+ }
377
+
378
+ interface GPUBufferBinding {
379
+ buffer: GPUBuffer;
380
+ offset?: GPUSize64;
381
+ size?: GPUSize64;
382
+ }
383
+
384
+ interface GPUCanvasConfiguration {
385
+ alphaMode?: GPUCanvasAlphaMode;
386
+ colorSpace?: PredefinedColorSpace;
387
+ device: GPUDevice;
388
+ format: GPUTextureFormat;
389
+ toneMapping?: GPUCanvasToneMapping;
390
+ usage?: GPUTextureUsageFlags;
391
+ viewFormats?: GPUTextureFormat[];
392
+ }
393
+
394
+ interface GPUCanvasToneMapping {
395
+ mode?: GPUCanvasToneMappingMode;
396
+ }
397
+
368
398
  interface GPUColorDict {
369
399
  a: number;
370
400
  b: number;
@@ -372,6 +402,19 @@ interface GPUColorDict {
372
402
  r: number;
373
403
  }
374
404
 
405
+ interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
406
+ }
407
+
408
+ interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
409
+ timestampWrites?: GPUComputePassTimestampWrites;
410
+ }
411
+
412
+ interface GPUComputePassTimestampWrites {
413
+ beginningOfPassWriteIndex?: GPUSize32;
414
+ endOfPassWriteIndex?: GPUSize32;
415
+ querySet: GPUQuerySet;
416
+ }
417
+
375
418
  interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
376
419
  colorSpace?: PredefinedColorSpace;
377
420
  premultipliedAlpha?: boolean;
@@ -389,6 +432,11 @@ interface GPUExtent3DDict {
389
432
  width: GPUIntegerCoordinate;
390
433
  }
391
434
 
435
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
436
+ colorSpace?: PredefinedColorSpace;
437
+ source: VideoFrame;
438
+ }
439
+
392
440
  interface GPUObjectDescriptorBase {
393
441
  label?: string;
394
442
  }
@@ -411,6 +459,45 @@ interface GPUPipelineErrorInit {
411
459
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
412
460
  }
413
461
 
462
+ interface GPURenderPassColorAttachment {
463
+ clearValue?: GPUColor;
464
+ depthSlice?: GPUIntegerCoordinate;
465
+ loadOp: GPULoadOp;
466
+ resolveTarget?: GPUTexture | GPUTextureView;
467
+ storeOp: GPUStoreOp;
468
+ view: GPUTexture | GPUTextureView;
469
+ }
470
+
471
+ interface GPURenderPassDepthStencilAttachment {
472
+ depthClearValue?: number;
473
+ depthLoadOp?: GPULoadOp;
474
+ depthReadOnly?: boolean;
475
+ depthStoreOp?: GPUStoreOp;
476
+ stencilClearValue?: GPUStencilValue;
477
+ stencilLoadOp?: GPULoadOp;
478
+ stencilReadOnly?: boolean;
479
+ stencilStoreOp?: GPUStoreOp;
480
+ view: GPUTexture | GPUTextureView;
481
+ }
482
+
483
+ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
484
+ colorAttachments: (GPURenderPassColorAttachment | null)[];
485
+ depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
486
+ maxDrawCount?: GPUSize64;
487
+ occlusionQuerySet?: GPUQuerySet;
488
+ timestampWrites?: GPURenderPassTimestampWrites;
489
+ }
490
+
491
+ interface GPURenderPassTimestampWrites {
492
+ beginningOfPassWriteIndex?: GPUSize32;
493
+ endOfPassWriteIndex?: GPUSize32;
494
+ querySet: GPUQuerySet;
495
+ }
496
+
497
+ interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
498
+ buffer: GPUBuffer;
499
+ }
500
+
414
501
  interface GPUTexelCopyBufferLayout {
415
502
  bytesPerRow?: GPUSize32;
416
503
  offset?: GPUSize64;
@@ -5099,6 +5186,50 @@ declare var GPUBuffer: {
5099
5186
  new(): GPUBuffer;
5100
5187
  };
5101
5188
 
5189
+ /**
5190
+ * 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".
5191
+ * Available only in secure contexts.
5192
+ *
5193
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
5194
+ */
5195
+ interface GPUCanvasContext {
5196
+ /**
5197
+ * The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
5198
+ *
5199
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
5200
+ */
5201
+ readonly canvas: OffscreenCanvas;
5202
+ /**
5203
+ * 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.
5204
+ *
5205
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
5206
+ */
5207
+ configure(configuration: GPUCanvasConfiguration): void;
5208
+ /**
5209
+ * The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
5210
+ *
5211
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
5212
+ */
5213
+ getConfiguration(): GPUCanvasConfiguration | null;
5214
+ /**
5215
+ * The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
5216
+ *
5217
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
5218
+ */
5219
+ getCurrentTexture(): GPUTexture;
5220
+ /**
5221
+ * 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.
5222
+ *
5223
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
5224
+ */
5225
+ unconfigure(): void;
5226
+ }
5227
+
5228
+ declare var GPUCanvasContext: {
5229
+ prototype: GPUCanvasContext;
5230
+ new(): GPUCanvasContext;
5231
+ };
5232
+
5102
5233
  /**
5103
5234
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
5104
5235
  * Available only in secure contexts.
@@ -5113,6 +5244,75 @@ declare var GPUCommandBuffer: {
5113
5244
  new(): GPUCommandBuffer;
5114
5245
  };
5115
5246
 
5247
+ /**
5248
+ * The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
5249
+ * Available only in secure contexts.
5250
+ *
5251
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
5252
+ */
5253
+ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
5254
+ /**
5255
+ * The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
5256
+ *
5257
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
5258
+ */
5259
+ beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
5260
+ /**
5261
+ * The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
5262
+ *
5263
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
5264
+ */
5265
+ beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
5266
+ /**
5267
+ * The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
5268
+ *
5269
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
5270
+ */
5271
+ clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
5272
+ /**
5273
+ * The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
5274
+ *
5275
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
5276
+ */
5277
+ copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
5278
+ copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
5279
+ /**
5280
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
5281
+ *
5282
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
5283
+ */
5284
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
5285
+ /**
5286
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
5287
+ *
5288
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
5289
+ */
5290
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
5291
+ /**
5292
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
5293
+ *
5294
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
5295
+ */
5296
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
5297
+ /**
5298
+ * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
5299
+ *
5300
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
5301
+ */
5302
+ finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
5303
+ /**
5304
+ * The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
5305
+ *
5306
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
5307
+ */
5308
+ resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
5309
+ }
5310
+
5311
+ declare var GPUCommandEncoder: {
5312
+ prototype: GPUCommandEncoder;
5313
+ new(): GPUCommandEncoder;
5314
+ };
5315
+
5116
5316
  /**
5117
5317
  * 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.
5118
5318
  * Available only in secure contexts.
@@ -5244,6 +5444,90 @@ interface GPUDebugCommandsMixin {
5244
5444
  pushDebugGroup(groupLabel: string): void;
5245
5445
  }
5246
5446
 
5447
+ interface GPUDeviceEventMap {
5448
+ "uncapturederror": GPUUncapturedErrorEvent;
5449
+ }
5450
+
5451
+ /**
5452
+ * 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.
5453
+ * Available only in secure contexts.
5454
+ *
5455
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
5456
+ */
5457
+ interface GPUDevice extends EventTarget, GPUObjectBase {
5458
+ /**
5459
+ * The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
5460
+ *
5461
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
5462
+ */
5463
+ readonly adapterInfo: GPUAdapterInfo;
5464
+ /**
5465
+ * 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.
5466
+ *
5467
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
5468
+ */
5469
+ readonly features: GPUSupportedFeatures;
5470
+ /**
5471
+ * 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.
5472
+ *
5473
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
5474
+ */
5475
+ readonly limits: GPUSupportedLimits;
5476
+ /**
5477
+ * 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.
5478
+ *
5479
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
5480
+ */
5481
+ readonly lost: Promise<GPUDeviceLostInfo>;
5482
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
5483
+ onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
5484
+ /**
5485
+ * The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
5486
+ *
5487
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
5488
+ */
5489
+ readonly queue: GPUQueue;
5490
+ /**
5491
+ * 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.
5492
+ *
5493
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5494
+ */
5495
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5496
+ /**
5497
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5498
+ *
5499
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
5500
+ */
5501
+ destroy(): void;
5502
+ /**
5503
+ * 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.
5504
+ *
5505
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
5506
+ */
5507
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
5508
+ /**
5509
+ * 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.
5510
+ *
5511
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
5512
+ */
5513
+ popErrorScope(): Promise<GPUError | null>;
5514
+ /**
5515
+ * 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.
5516
+ *
5517
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
5518
+ */
5519
+ pushErrorScope(filter: GPUErrorFilter): void;
5520
+ addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5521
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5522
+ removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
5523
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
5524
+ }
5525
+
5526
+ declare var GPUDevice: {
5527
+ prototype: GPUDevice;
5528
+ new(): GPUDevice;
5529
+ };
5530
+
5247
5531
  /**
5248
5532
  * 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.
5249
5533
  * Available only in secure contexts.
@@ -14372,6 +14656,7 @@ type GLsizei = number;
14372
14656
  type GLsizeiptr = number;
14373
14657
  type GLuint = number;
14374
14658
  type GLuint64 = number;
14659
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14375
14660
  type GPUBufferDynamicOffset = number;
14376
14661
  type GPUColor = number[] | GPUColorDict;
14377
14662
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
@@ -14399,7 +14684,7 @@ type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
14399
14684
  type Int32List = Int32Array<ArrayBufferLike> | GLint[];
14400
14685
  type MessageEventSource = MessagePort | ServiceWorker;
14401
14686
  type NamedCurve = string;
14402
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
14687
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
14403
14688
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
14404
14689
  type PerformanceEntryList = PerformanceEntry[];
14405
14690
  type PushMessageDataInit = BufferSource | string;
@@ -14448,11 +14733,16 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
14448
14733
  type FontFaceSetLoadStatus = "loaded" | "loading";
14449
14734
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
14450
14735
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
14736
+ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14737
+ type GPUCanvasToneMappingMode = "extended" | "standard";
14451
14738
  type GPUCompilationMessageType = "error" | "info" | "warning";
14452
14739
  type GPUDeviceLostReason = "destroyed" | "unknown";
14740
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14453
14741
  type GPUIndexFormat = "uint16" | "uint32";
14742
+ type GPULoadOp = "clear" | "load";
14454
14743
  type GPUPipelineErrorReason = "internal" | "validation";
14455
14744
  type GPUQueryType = "occlusion" | "timestamp";
14745
+ type GPUStoreOp = "discard" | "store";
14456
14746
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
14457
14747
  type GPUTextureDimension = "1d" | "2d" | "3d";
14458
14748
  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";
@@ -14603,6 +14893,27 @@ interface GPUBindingCommandsMixin {
14603
14893
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
14604
14894
  }
14605
14895
 
14896
+ interface GPUCommandEncoder {
14897
+ /**
14898
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
14899
+ *
14900
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
14901
+ */
14902
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
14903
+ /**
14904
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
14905
+ *
14906
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
14907
+ */
14908
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
14909
+ /**
14910
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
14911
+ *
14912
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
14913
+ */
14914
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
14915
+ }
14916
+
14606
14917
  interface GPUQueue {
14607
14918
  /**
14608
14919
  * 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/webworker",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],