@types/webworker 0.0.62 → 0.0.64

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.62 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.62.
48
+ You can read what changed in version 0.0.64 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.64.
package/index.d.ts CHANGED
@@ -365,6 +365,20 @@ interface FontFaceSetLoadEventInit extends EventInit {
365
365
  fontfaces?: FontFace[];
366
366
  }
367
367
 
368
+ interface GPUCanvasConfiguration {
369
+ alphaMode?: GPUCanvasAlphaMode;
370
+ colorSpace?: PredefinedColorSpace;
371
+ device: GPUDevice;
372
+ format: GPUTextureFormat;
373
+ toneMapping?: GPUCanvasToneMapping;
374
+ usage?: GPUTextureUsageFlags;
375
+ viewFormats?: GPUTextureFormat[];
376
+ }
377
+
378
+ interface GPUCanvasToneMapping {
379
+ mode?: GPUCanvasToneMappingMode;
380
+ }
381
+
368
382
  interface GPUColorDict {
369
383
  a: number;
370
384
  b: number;
@@ -372,10 +386,51 @@ interface GPUColorDict {
372
386
  r: number;
373
387
  }
374
388
 
389
+ interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
390
+ }
391
+
392
+ interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
393
+ timestampWrites?: GPUComputePassTimestampWrites;
394
+ }
395
+
396
+ interface GPUComputePassTimestampWrites {
397
+ beginningOfPassWriteIndex?: GPUSize32;
398
+ endOfPassWriteIndex?: GPUSize32;
399
+ querySet: GPUQuerySet;
400
+ }
401
+
402
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
403
+ colorSpace?: PredefinedColorSpace;
404
+ premultipliedAlpha?: boolean;
405
+ }
406
+
407
+ interface GPUCopyExternalImageSourceInfo {
408
+ flipY?: boolean;
409
+ origin?: GPUOrigin2D;
410
+ source: GPUCopyExternalImageSource;
411
+ }
412
+
413
+ interface GPUExtent3DDict {
414
+ depthOrArrayLayers?: GPUIntegerCoordinate;
415
+ height?: GPUIntegerCoordinate;
416
+ width: GPUIntegerCoordinate;
417
+ }
418
+
375
419
  interface GPUObjectDescriptorBase {
376
420
  label?: string;
377
421
  }
378
422
 
423
+ interface GPUOrigin2DDict {
424
+ x?: GPUIntegerCoordinate;
425
+ y?: GPUIntegerCoordinate;
426
+ }
427
+
428
+ interface GPUOrigin3DDict {
429
+ x?: GPUIntegerCoordinate;
430
+ y?: GPUIntegerCoordinate;
431
+ z?: GPUIntegerCoordinate;
432
+ }
433
+
379
434
  interface GPUPipelineErrorInit {
380
435
  reason: GPUPipelineErrorReason;
381
436
  }
@@ -383,6 +438,58 @@ interface GPUPipelineErrorInit {
383
438
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
384
439
  }
385
440
 
441
+ interface GPURenderPassColorAttachment {
442
+ clearValue?: GPUColor;
443
+ depthSlice?: GPUIntegerCoordinate;
444
+ loadOp: GPULoadOp;
445
+ resolveTarget?: GPUTexture | GPUTextureView;
446
+ storeOp: GPUStoreOp;
447
+ view: GPUTexture | GPUTextureView;
448
+ }
449
+
450
+ interface GPURenderPassDepthStencilAttachment {
451
+ depthClearValue?: number;
452
+ depthLoadOp?: GPULoadOp;
453
+ depthReadOnly?: boolean;
454
+ depthStoreOp?: GPUStoreOp;
455
+ stencilClearValue?: GPUStencilValue;
456
+ stencilLoadOp?: GPULoadOp;
457
+ stencilReadOnly?: boolean;
458
+ stencilStoreOp?: GPUStoreOp;
459
+ view: GPUTexture | GPUTextureView;
460
+ }
461
+
462
+ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
463
+ colorAttachments: (GPURenderPassColorAttachment | null)[];
464
+ depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
465
+ maxDrawCount?: GPUSize64;
466
+ occlusionQuerySet?: GPUQuerySet;
467
+ timestampWrites?: GPURenderPassTimestampWrites;
468
+ }
469
+
470
+ interface GPURenderPassTimestampWrites {
471
+ beginningOfPassWriteIndex?: GPUSize32;
472
+ endOfPassWriteIndex?: GPUSize32;
473
+ querySet: GPUQuerySet;
474
+ }
475
+
476
+ interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
477
+ buffer: GPUBuffer;
478
+ }
479
+
480
+ interface GPUTexelCopyBufferLayout {
481
+ bytesPerRow?: GPUSize32;
482
+ offset?: GPUSize64;
483
+ rowsPerImage?: GPUSize32;
484
+ }
485
+
486
+ interface GPUTexelCopyTextureInfo {
487
+ aspect?: GPUTextureAspect;
488
+ mipLevel?: GPUIntegerCoordinate;
489
+ origin?: GPUOrigin3D;
490
+ texture: GPUTexture;
491
+ }
492
+
386
493
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
387
494
  arrayLayerCount?: GPUIntegerCoordinate;
388
495
  aspect?: GPUTextureAspect;
@@ -5058,6 +5165,50 @@ declare var GPUBuffer: {
5058
5165
  new(): GPUBuffer;
5059
5166
  };
5060
5167
 
5168
+ /**
5169
+ * 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".
5170
+ * Available only in secure contexts.
5171
+ *
5172
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
5173
+ */
5174
+ interface GPUCanvasContext {
5175
+ /**
5176
+ * The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
5177
+ *
5178
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
5179
+ */
5180
+ readonly canvas: OffscreenCanvas;
5181
+ /**
5182
+ * 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.
5183
+ *
5184
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
5185
+ */
5186
+ configure(configuration: GPUCanvasConfiguration): void;
5187
+ /**
5188
+ * The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
5189
+ *
5190
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
5191
+ */
5192
+ getConfiguration(): GPUCanvasConfiguration | null;
5193
+ /**
5194
+ * The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
5195
+ *
5196
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
5197
+ */
5198
+ getCurrentTexture(): GPUTexture;
5199
+ /**
5200
+ * 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.
5201
+ *
5202
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
5203
+ */
5204
+ unconfigure(): void;
5205
+ }
5206
+
5207
+ declare var GPUCanvasContext: {
5208
+ prototype: GPUCanvasContext;
5209
+ new(): GPUCanvasContext;
5210
+ };
5211
+
5061
5212
  /**
5062
5213
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
5063
5214
  * Available only in secure contexts.
@@ -5072,6 +5223,75 @@ declare var GPUCommandBuffer: {
5072
5223
  new(): GPUCommandBuffer;
5073
5224
  };
5074
5225
 
5226
+ /**
5227
+ * The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
5228
+ * Available only in secure contexts.
5229
+ *
5230
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
5231
+ */
5232
+ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
5233
+ /**
5234
+ * The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
5235
+ *
5236
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
5237
+ */
5238
+ beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
5239
+ /**
5240
+ * The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
5241
+ *
5242
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
5243
+ */
5244
+ beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
5245
+ /**
5246
+ * The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
5247
+ *
5248
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
5249
+ */
5250
+ clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
5251
+ /**
5252
+ * The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
5253
+ *
5254
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
5255
+ */
5256
+ copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
5257
+ copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
5258
+ /**
5259
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
5260
+ *
5261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
5262
+ */
5263
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
5264
+ /**
5265
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
5266
+ *
5267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
5268
+ */
5269
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
5270
+ /**
5271
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
5272
+ *
5273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
5274
+ */
5275
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
5276
+ /**
5277
+ * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
5278
+ *
5279
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
5280
+ */
5281
+ finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
5282
+ /**
5283
+ * The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
5284
+ *
5285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
5286
+ */
5287
+ resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
5288
+ }
5289
+
5290
+ declare var GPUCommandEncoder: {
5291
+ prototype: GPUCommandEncoder;
5292
+ new(): GPUCommandEncoder;
5293
+ };
5294
+
5075
5295
  /**
5076
5296
  * 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.
5077
5297
  * Available only in secure contexts.
@@ -5203,6 +5423,60 @@ interface GPUDebugCommandsMixin {
5203
5423
  pushDebugGroup(groupLabel: string): void;
5204
5424
  }
5205
5425
 
5426
+ interface GPUDeviceEventMap {
5427
+ "uncapturederror": GPUUncapturedErrorEvent;
5428
+ }
5429
+
5430
+ /**
5431
+ * 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.
5432
+ * Available only in secure contexts.
5433
+ *
5434
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
5435
+ */
5436
+ interface GPUDevice extends EventTarget, GPUObjectBase {
5437
+ /**
5438
+ * The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
5439
+ *
5440
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
5441
+ */
5442
+ readonly adapterInfo: GPUAdapterInfo;
5443
+ /**
5444
+ * 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.
5445
+ *
5446
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
5447
+ */
5448
+ readonly features: GPUSupportedFeatures;
5449
+ /**
5450
+ * 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.
5451
+ *
5452
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
5453
+ */
5454
+ readonly limits: GPUSupportedLimits;
5455
+ /**
5456
+ * 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.
5457
+ *
5458
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
5459
+ */
5460
+ readonly lost: Promise<GPUDeviceLostInfo>;
5461
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
5462
+ onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
5463
+ /**
5464
+ * The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
5465
+ *
5466
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
5467
+ */
5468
+ readonly queue: GPUQueue;
5469
+ addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5470
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5471
+ removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
5472
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
5473
+ }
5474
+
5475
+ declare var GPUDevice: {
5476
+ prototype: GPUDevice;
5477
+ new(): GPUDevice;
5478
+ };
5479
+
5206
5480
  /**
5207
5481
  * 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.
5208
5482
  * Available only in secure contexts.
@@ -5367,6 +5641,50 @@ declare var GPUQuerySet: {
5367
5641
  new(): GPUQuerySet;
5368
5642
  };
5369
5643
 
5644
+ /**
5645
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
5646
+ * Available only in secure contexts.
5647
+ *
5648
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
5649
+ */
5650
+ interface GPUQueue extends GPUObjectBase {
5651
+ /**
5652
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
5653
+ *
5654
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
5655
+ */
5656
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
5657
+ /**
5658
+ * 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.
5659
+ *
5660
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
5661
+ */
5662
+ onSubmittedWorkDone(): Promise<void>;
5663
+ /**
5664
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
5665
+ *
5666
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
5667
+ */
5668
+ submit(commandBuffers: GPUCommandBuffer[]): void;
5669
+ /**
5670
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
5671
+ *
5672
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
5673
+ */
5674
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
5675
+ /**
5676
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
5677
+ *
5678
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
5679
+ */
5680
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
5681
+ }
5682
+
5683
+ declare var GPUQueue: {
5684
+ prototype: GPUQueue;
5685
+ new(): GPUQueue;
5686
+ };
5687
+
5370
5688
  /**
5371
5689
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
5372
5690
  * Available only in secure contexts.
@@ -14289,11 +14607,15 @@ type GLuint = number;
14289
14607
  type GLuint64 = number;
14290
14608
  type GPUBufferDynamicOffset = number;
14291
14609
  type GPUColor = number[] | GPUColorDict;
14610
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14611
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
14292
14612
  type GPUFlagsConstant = number;
14293
14613
  type GPUIndex32 = number;
14294
14614
  type GPUIntegerCoordinate = number;
14295
14615
  type GPUIntegerCoordinateOut = number;
14296
14616
  type GPUMapModeFlags = number;
14617
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14618
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14297
14619
  type GPUSignedOffset32 = number;
14298
14620
  type GPUSize32 = number;
14299
14621
  type GPUSize32Out = number;
@@ -14310,7 +14632,7 @@ type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
14310
14632
  type Int32List = Int32Array<ArrayBufferLike> | GLint[];
14311
14633
  type MessageEventSource = MessagePort | ServiceWorker;
14312
14634
  type NamedCurve = string;
14313
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
14635
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
14314
14636
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
14315
14637
  type PerformanceEntryList = PerformanceEntry[];
14316
14638
  type PushMessageDataInit = BufferSource | string;
@@ -14359,11 +14681,15 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
14359
14681
  type FontFaceSetLoadStatus = "loaded" | "loading";
14360
14682
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
14361
14683
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
14684
+ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14685
+ type GPUCanvasToneMappingMode = "extended" | "standard";
14362
14686
  type GPUCompilationMessageType = "error" | "info" | "warning";
14363
14687
  type GPUDeviceLostReason = "destroyed" | "unknown";
14364
14688
  type GPUIndexFormat = "uint16" | "uint32";
14689
+ type GPULoadOp = "clear" | "load";
14365
14690
  type GPUPipelineErrorReason = "internal" | "validation";
14366
14691
  type GPUQueryType = "occlusion" | "timestamp";
14692
+ type GPUStoreOp = "discard" | "store";
14367
14693
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
14368
14694
  type GPUTextureDimension = "1d" | "2d" | "3d";
14369
14695
  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";
@@ -14514,6 +14840,48 @@ interface GPUBindingCommandsMixin {
14514
14840
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
14515
14841
  }
14516
14842
 
14843
+ interface GPUCommandEncoder {
14844
+ /**
14845
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
14846
+ *
14847
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
14848
+ */
14849
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
14850
+ /**
14851
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
14852
+ *
14853
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
14854
+ */
14855
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
14856
+ /**
14857
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
14858
+ *
14859
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
14860
+ */
14861
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
14862
+ }
14863
+
14864
+ interface GPUQueue {
14865
+ /**
14866
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
14867
+ *
14868
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
14869
+ */
14870
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
14871
+ /**
14872
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
14873
+ *
14874
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
14875
+ */
14876
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
14877
+ /**
14878
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
14879
+ *
14880
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
14881
+ */
14882
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
14883
+ }
14884
+
14517
14885
  interface GPURenderPassEncoder {
14518
14886
  /**
14519
14887
  * 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/webworker",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],