@types/webworker 0.0.64 → 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.64 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.64.
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,22 @@ 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
+
368
384
  interface GPUCanvasConfiguration {
369
385
  alphaMode?: GPUCanvasAlphaMode;
370
386
  colorSpace?: PredefinedColorSpace;
@@ -416,6 +432,11 @@ interface GPUExtent3DDict {
416
432
  width: GPUIntegerCoordinate;
417
433
  }
418
434
 
435
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
436
+ colorSpace?: PredefinedColorSpace;
437
+ source: VideoFrame;
438
+ }
439
+
419
440
  interface GPUObjectDescriptorBase {
420
441
  label?: string;
421
442
  }
@@ -5466,6 +5487,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5466
5487
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
5467
5488
  */
5468
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;
5469
5520
  addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5470
5521
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5471
5522
  removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -14605,6 +14656,7 @@ type GLsizei = number;
14605
14656
  type GLsizeiptr = number;
14606
14657
  type GLuint = number;
14607
14658
  type GLuint64 = number;
14659
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14608
14660
  type GPUBufferDynamicOffset = number;
14609
14661
  type GPUColor = number[] | GPUColorDict;
14610
14662
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
@@ -14685,6 +14737,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14685
14737
  type GPUCanvasToneMappingMode = "extended" | "standard";
14686
14738
  type GPUCompilationMessageType = "error" | "info" | "warning";
14687
14739
  type GPUDeviceLostReason = "destroyed" | "unknown";
14740
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14688
14741
  type GPUIndexFormat = "uint16" | "uint32";
14689
14742
  type GPULoadOp = "clear" | "load";
14690
14743
  type GPUPipelineErrorReason = "internal" | "validation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.64",
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": [],
package/ts5.5/index.d.ts CHANGED
@@ -362,6 +362,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
362
362
  fontfaces?: FontFace[];
363
363
  }
364
364
 
365
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
366
+ entries: GPUBindGroupEntry[];
367
+ layout: GPUBindGroupLayout;
368
+ }
369
+
370
+ interface GPUBindGroupEntry {
371
+ binding: GPUIndex32;
372
+ resource: GPUBindingResource;
373
+ }
374
+
375
+ interface GPUBufferBinding {
376
+ buffer: GPUBuffer;
377
+ offset?: GPUSize64;
378
+ size?: GPUSize64;
379
+ }
380
+
365
381
  interface GPUCanvasConfiguration {
366
382
  alphaMode?: GPUCanvasAlphaMode;
367
383
  colorSpace?: PredefinedColorSpace;
@@ -413,6 +429,11 @@ interface GPUExtent3DDict {
413
429
  width: GPUIntegerCoordinate;
414
430
  }
415
431
 
432
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
433
+ colorSpace?: PredefinedColorSpace;
434
+ source: VideoFrame;
435
+ }
436
+
416
437
  interface GPUObjectDescriptorBase {
417
438
  label?: string;
418
439
  }
@@ -5463,6 +5484,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5463
5484
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
5464
5485
  */
5465
5486
  readonly queue: GPUQueue;
5487
+ /**
5488
+ * 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.
5489
+ *
5490
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5491
+ */
5492
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5493
+ /**
5494
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5495
+ *
5496
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
5497
+ */
5498
+ destroy(): void;
5499
+ /**
5500
+ * 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.
5501
+ *
5502
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
5503
+ */
5504
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
5505
+ /**
5506
+ * 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.
5507
+ *
5508
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
5509
+ */
5510
+ popErrorScope(): Promise<GPUError | null>;
5511
+ /**
5512
+ * 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.
5513
+ *
5514
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
5515
+ */
5516
+ pushErrorScope(filter: GPUErrorFilter): void;
5466
5517
  addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5467
5518
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5468
5519
  removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -14602,6 +14653,7 @@ type GLsizei = number;
14602
14653
  type GLsizeiptr = number;
14603
14654
  type GLuint = number;
14604
14655
  type GLuint64 = number;
14656
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14605
14657
  type GPUBufferDynamicOffset = number;
14606
14658
  type GPUColor = number[] | GPUColorDict;
14607
14659
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
@@ -14682,6 +14734,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14682
14734
  type GPUCanvasToneMappingMode = "extended" | "standard";
14683
14735
  type GPUCompilationMessageType = "error" | "info" | "warning";
14684
14736
  type GPUDeviceLostReason = "destroyed" | "unknown";
14737
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14685
14738
  type GPUIndexFormat = "uint16" | "uint32";
14686
14739
  type GPULoadOp = "clear" | "load";
14687
14740
  type GPUPipelineErrorReason = "internal" | "validation";
package/ts5.6/index.d.ts CHANGED
@@ -362,6 +362,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
362
362
  fontfaces?: FontFace[];
363
363
  }
364
364
 
365
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
366
+ entries: GPUBindGroupEntry[];
367
+ layout: GPUBindGroupLayout;
368
+ }
369
+
370
+ interface GPUBindGroupEntry {
371
+ binding: GPUIndex32;
372
+ resource: GPUBindingResource;
373
+ }
374
+
375
+ interface GPUBufferBinding {
376
+ buffer: GPUBuffer;
377
+ offset?: GPUSize64;
378
+ size?: GPUSize64;
379
+ }
380
+
365
381
  interface GPUCanvasConfiguration {
366
382
  alphaMode?: GPUCanvasAlphaMode;
367
383
  colorSpace?: PredefinedColorSpace;
@@ -413,6 +429,11 @@ interface GPUExtent3DDict {
413
429
  width: GPUIntegerCoordinate;
414
430
  }
415
431
 
432
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
433
+ colorSpace?: PredefinedColorSpace;
434
+ source: VideoFrame;
435
+ }
436
+
416
437
  interface GPUObjectDescriptorBase {
417
438
  label?: string;
418
439
  }
@@ -5463,6 +5484,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5463
5484
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
5464
5485
  */
5465
5486
  readonly queue: GPUQueue;
5487
+ /**
5488
+ * 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.
5489
+ *
5490
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5491
+ */
5492
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5493
+ /**
5494
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5495
+ *
5496
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
5497
+ */
5498
+ destroy(): void;
5499
+ /**
5500
+ * 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.
5501
+ *
5502
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
5503
+ */
5504
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
5505
+ /**
5506
+ * 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.
5507
+ *
5508
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
5509
+ */
5510
+ popErrorScope(): Promise<GPUError | null>;
5511
+ /**
5512
+ * 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.
5513
+ *
5514
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
5515
+ */
5516
+ pushErrorScope(filter: GPUErrorFilter): void;
5466
5517
  addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5467
5518
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5468
5519
  removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -14602,6 +14653,7 @@ type GLsizei = number;
14602
14653
  type GLsizeiptr = number;
14603
14654
  type GLuint = number;
14604
14655
  type GLuint64 = number;
14656
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14605
14657
  type GPUBufferDynamicOffset = number;
14606
14658
  type GPUColor = number[] | GPUColorDict;
14607
14659
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
@@ -14682,6 +14734,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14682
14734
  type GPUCanvasToneMappingMode = "extended" | "standard";
14683
14735
  type GPUCompilationMessageType = "error" | "info" | "warning";
14684
14736
  type GPUDeviceLostReason = "destroyed" | "unknown";
14737
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14685
14738
  type GPUIndexFormat = "uint16" | "uint32";
14686
14739
  type GPULoadOp = "clear" | "load";
14687
14740
  type GPUPipelineErrorReason = "internal" | "validation";
package/ts5.9/index.d.ts CHANGED
@@ -362,6 +362,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
362
362
  fontfaces?: FontFace[];
363
363
  }
364
364
 
365
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
366
+ entries: GPUBindGroupEntry[];
367
+ layout: GPUBindGroupLayout;
368
+ }
369
+
370
+ interface GPUBindGroupEntry {
371
+ binding: GPUIndex32;
372
+ resource: GPUBindingResource;
373
+ }
374
+
375
+ interface GPUBufferBinding {
376
+ buffer: GPUBuffer;
377
+ offset?: GPUSize64;
378
+ size?: GPUSize64;
379
+ }
380
+
365
381
  interface GPUCanvasConfiguration {
366
382
  alphaMode?: GPUCanvasAlphaMode;
367
383
  colorSpace?: PredefinedColorSpace;
@@ -413,6 +429,11 @@ interface GPUExtent3DDict {
413
429
  width: GPUIntegerCoordinate;
414
430
  }
415
431
 
432
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
433
+ colorSpace?: PredefinedColorSpace;
434
+ source: VideoFrame;
435
+ }
436
+
416
437
  interface GPUObjectDescriptorBase {
417
438
  label?: string;
418
439
  }
@@ -5463,6 +5484,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5463
5484
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
5464
5485
  */
5465
5486
  readonly queue: GPUQueue;
5487
+ /**
5488
+ * 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.
5489
+ *
5490
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5491
+ */
5492
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5493
+ /**
5494
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5495
+ *
5496
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
5497
+ */
5498
+ destroy(): void;
5499
+ /**
5500
+ * 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.
5501
+ *
5502
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
5503
+ */
5504
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
5505
+ /**
5506
+ * 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.
5507
+ *
5508
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
5509
+ */
5510
+ popErrorScope(): Promise<GPUError | null>;
5511
+ /**
5512
+ * 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.
5513
+ *
5514
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
5515
+ */
5516
+ pushErrorScope(filter: GPUErrorFilter): void;
5466
5517
  addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5467
5518
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5468
5519
  removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -14602,6 +14653,7 @@ type GLsizei = number;
14602
14653
  type GLsizeiptr = number;
14603
14654
  type GLuint = number;
14604
14655
  type GLuint64 = number;
14656
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14605
14657
  type GPUBufferDynamicOffset = number;
14606
14658
  type GPUColor = number[] | GPUColorDict;
14607
14659
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
@@ -14682,6 +14734,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14682
14734
  type GPUCanvasToneMappingMode = "extended" | "standard";
14683
14735
  type GPUCompilationMessageType = "error" | "info" | "warning";
14684
14736
  type GPUDeviceLostReason = "destroyed" | "unknown";
14737
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14685
14738
  type GPUIndexFormat = "uint16" | "uint32";
14686
14739
  type GPULoadOp = "clear" | "load";
14687
14740
  type GPUPipelineErrorReason = "internal" | "validation";