@types/webworker 0.0.67 → 0.0.68

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.67 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.67.
48
+ You can read what changed in version 0.0.68 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.68.
package/index.d.ts CHANGED
@@ -550,6 +550,10 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
550
550
  mipmapFilter?: GPUMipmapFilterMode;
551
551
  }
552
552
 
553
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
554
+ code: string;
555
+ }
556
+
553
557
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
554
558
  buffer: GPUBuffer;
555
559
  }
@@ -567,6 +571,16 @@ interface GPUTexelCopyTextureInfo {
567
571
  texture: GPUTexture;
568
572
  }
569
573
 
574
+ interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
575
+ dimension?: GPUTextureDimension;
576
+ format: GPUTextureFormat;
577
+ mipLevelCount?: GPUIntegerCoordinate;
578
+ sampleCount?: GPUSize32;
579
+ size: GPUExtent3D;
580
+ usage: GPUTextureUsageFlags;
581
+ viewFormats?: GPUTextureFormat[];
582
+ }
583
+
570
584
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
571
585
  arrayLayerCount?: GPUIntegerCoordinate;
572
586
  aspect?: GPUTextureAspect;
@@ -5597,6 +5611,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5597
5611
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
5598
5612
  */
5599
5613
  createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
5614
+ /**
5615
+ * The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
5616
+ *
5617
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
5618
+ */
5619
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
5620
+ /**
5621
+ * The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
5622
+ *
5623
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
5624
+ */
5625
+ createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
5600
5626
  /**
5601
5627
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5602
5628
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
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
@@ -547,6 +547,10 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
547
547
  mipmapFilter?: GPUMipmapFilterMode;
548
548
  }
549
549
 
550
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
551
+ code: string;
552
+ }
553
+
550
554
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
551
555
  buffer: GPUBuffer;
552
556
  }
@@ -564,6 +568,16 @@ interface GPUTexelCopyTextureInfo {
564
568
  texture: GPUTexture;
565
569
  }
566
570
 
571
+ interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
572
+ dimension?: GPUTextureDimension;
573
+ format: GPUTextureFormat;
574
+ mipLevelCount?: GPUIntegerCoordinate;
575
+ sampleCount?: GPUSize32;
576
+ size: GPUExtent3D;
577
+ usage: GPUTextureUsageFlags;
578
+ viewFormats?: GPUTextureFormat[];
579
+ }
580
+
567
581
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
568
582
  arrayLayerCount?: GPUIntegerCoordinate;
569
583
  aspect?: GPUTextureAspect;
@@ -5594,6 +5608,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5594
5608
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
5595
5609
  */
5596
5610
  createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
5611
+ /**
5612
+ * The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
5613
+ *
5614
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
5615
+ */
5616
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
5617
+ /**
5618
+ * The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
5619
+ *
5620
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
5621
+ */
5622
+ createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
5597
5623
  /**
5598
5624
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5599
5625
  *
package/ts5.6/index.d.ts CHANGED
@@ -547,6 +547,10 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
547
547
  mipmapFilter?: GPUMipmapFilterMode;
548
548
  }
549
549
 
550
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
551
+ code: string;
552
+ }
553
+
550
554
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
551
555
  buffer: GPUBuffer;
552
556
  }
@@ -564,6 +568,16 @@ interface GPUTexelCopyTextureInfo {
564
568
  texture: GPUTexture;
565
569
  }
566
570
 
571
+ interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
572
+ dimension?: GPUTextureDimension;
573
+ format: GPUTextureFormat;
574
+ mipLevelCount?: GPUIntegerCoordinate;
575
+ sampleCount?: GPUSize32;
576
+ size: GPUExtent3D;
577
+ usage: GPUTextureUsageFlags;
578
+ viewFormats?: GPUTextureFormat[];
579
+ }
580
+
567
581
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
568
582
  arrayLayerCount?: GPUIntegerCoordinate;
569
583
  aspect?: GPUTextureAspect;
@@ -5594,6 +5608,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5594
5608
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
5595
5609
  */
5596
5610
  createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
5611
+ /**
5612
+ * The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
5613
+ *
5614
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
5615
+ */
5616
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
5617
+ /**
5618
+ * The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
5619
+ *
5620
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
5621
+ */
5622
+ createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
5597
5623
  /**
5598
5624
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5599
5625
  *
package/ts5.9/index.d.ts CHANGED
@@ -547,6 +547,10 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
547
547
  mipmapFilter?: GPUMipmapFilterMode;
548
548
  }
549
549
 
550
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
551
+ code: string;
552
+ }
553
+
550
554
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
551
555
  buffer: GPUBuffer;
552
556
  }
@@ -564,6 +568,16 @@ interface GPUTexelCopyTextureInfo {
564
568
  texture: GPUTexture;
565
569
  }
566
570
 
571
+ interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
572
+ dimension?: GPUTextureDimension;
573
+ format: GPUTextureFormat;
574
+ mipLevelCount?: GPUIntegerCoordinate;
575
+ sampleCount?: GPUSize32;
576
+ size: GPUExtent3D;
577
+ usage: GPUTextureUsageFlags;
578
+ viewFormats?: GPUTextureFormat[];
579
+ }
580
+
567
581
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
568
582
  arrayLayerCount?: GPUIntegerCoordinate;
569
583
  aspect?: GPUTextureAspect;
@@ -5594,6 +5608,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5594
5608
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
5595
5609
  */
5596
5610
  createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
5611
+ /**
5612
+ * The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
5613
+ *
5614
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
5615
+ */
5616
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
5617
+ /**
5618
+ * The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
5619
+ *
5620
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
5621
+ */
5622
+ createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
5597
5623
  /**
5598
5624
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5599
5625
  *