@types/webworker 0.0.66 → 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.66 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.66.
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
@@ -381,6 +381,12 @@ interface GPUBufferBinding {
381
381
  size?: GPUSize64;
382
382
  }
383
383
 
384
+ interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
385
+ mappedAtCreation?: boolean;
386
+ size: GPUSize64;
387
+ usage: GPUBufferUsageFlags;
388
+ }
389
+
384
390
  interface GPUCanvasConfiguration {
385
391
  alphaMode?: GPUCanvasAlphaMode;
386
392
  colorSpace?: PredefinedColorSpace;
@@ -405,6 +411,9 @@ interface GPUColorDict {
405
411
  interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
406
412
  }
407
413
 
414
+ interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
415
+ }
416
+
408
417
  interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
409
418
  timestampWrites?: GPUComputePassTimestampWrites;
410
419
  }
@@ -415,6 +424,10 @@ interface GPUComputePassTimestampWrites {
415
424
  querySet: GPUQuerySet;
416
425
  }
417
426
 
427
+ interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
428
+ compute: GPUProgrammableStage;
429
+ }
430
+
418
431
  interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
419
432
  colorSpace?: PredefinedColorSpace;
420
433
  premultipliedAlpha?: boolean;
@@ -452,13 +465,37 @@ interface GPUOrigin3DDict {
452
465
  z?: GPUIntegerCoordinate;
453
466
  }
454
467
 
468
+ interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
469
+ layout: GPUPipelineLayout | GPUAutoLayoutMode;
470
+ }
471
+
455
472
  interface GPUPipelineErrorInit {
456
473
  reason: GPUPipelineErrorReason;
457
474
  }
458
475
 
476
+ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
477
+ bindGroupLayouts: (GPUBindGroupLayout | null)[];
478
+ }
479
+
480
+ interface GPUProgrammableStage {
481
+ constants?: Record<string, GPUPipelineConstantValue>;
482
+ entryPoint?: string;
483
+ module: GPUShaderModule;
484
+ }
485
+
486
+ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
487
+ count: GPUSize32;
488
+ type: GPUQueryType;
489
+ }
490
+
459
491
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
460
492
  }
461
493
 
494
+ interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
495
+ depthReadOnly?: boolean;
496
+ stencilReadOnly?: boolean;
497
+ }
498
+
462
499
  interface GPURenderPassColorAttachment {
463
500
  clearValue?: GPUColor;
464
501
  depthSlice?: GPUIntegerCoordinate;
@@ -488,12 +525,35 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
488
525
  timestampWrites?: GPURenderPassTimestampWrites;
489
526
  }
490
527
 
528
+ interface GPURenderPassLayout extends GPUObjectDescriptorBase {
529
+ colorFormats: (GPUTextureFormat | null)[];
530
+ depthStencilFormat?: GPUTextureFormat;
531
+ sampleCount?: GPUSize32;
532
+ }
533
+
491
534
  interface GPURenderPassTimestampWrites {
492
535
  beginningOfPassWriteIndex?: GPUSize32;
493
536
  endOfPassWriteIndex?: GPUSize32;
494
537
  querySet: GPUQuerySet;
495
538
  }
496
539
 
540
+ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
541
+ addressModeU?: GPUAddressMode;
542
+ addressModeV?: GPUAddressMode;
543
+ addressModeW?: GPUAddressMode;
544
+ compare?: GPUCompareFunction;
545
+ lodMaxClamp?: number;
546
+ lodMinClamp?: number;
547
+ magFilter?: GPUFilterMode;
548
+ maxAnisotropy?: number;
549
+ minFilter?: GPUFilterMode;
550
+ mipmapFilter?: GPUMipmapFilterMode;
551
+ }
552
+
553
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
554
+ code: string;
555
+ }
556
+
497
557
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
498
558
  buffer: GPUBuffer;
499
559
  }
@@ -511,6 +571,16 @@ interface GPUTexelCopyTextureInfo {
511
571
  texture: GPUTexture;
512
572
  }
513
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
+
514
584
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
515
585
  arrayLayerCount?: GPUIntegerCoordinate;
516
586
  aspect?: GPUTextureAspect;
@@ -5493,6 +5563,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5493
5563
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5494
5564
  */
5495
5565
  createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5566
+ /**
5567
+ * The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
5568
+ *
5569
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
5570
+ */
5571
+ createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
5572
+ /**
5573
+ * The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
5574
+ *
5575
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
5576
+ */
5577
+ createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
5578
+ /**
5579
+ * The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
5580
+ *
5581
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
5582
+ */
5583
+ createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
5584
+ /**
5585
+ * The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
5586
+ *
5587
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
5588
+ */
5589
+ createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
5590
+ /**
5591
+ * The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
5592
+ *
5593
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
5594
+ */
5595
+ createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
5596
+ /**
5597
+ * The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
5598
+ *
5599
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
5600
+ */
5601
+ createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
5602
+ /**
5603
+ * The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
5604
+ *
5605
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
5606
+ */
5607
+ createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
5608
+ /**
5609
+ * The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
5610
+ *
5611
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
5612
+ */
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;
5496
5626
  /**
5497
5627
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5498
5628
  *
@@ -14658,6 +14788,7 @@ type GLuint = number;
14658
14788
  type GLuint64 = number;
14659
14789
  type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14660
14790
  type GPUBufferDynamicOffset = number;
14791
+ type GPUBufferUsageFlags = number;
14661
14792
  type GPUColor = number[] | GPUColorDict;
14662
14793
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14663
14794
  type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
@@ -14668,6 +14799,7 @@ type GPUIntegerCoordinateOut = number;
14668
14799
  type GPUMapModeFlags = number;
14669
14800
  type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14670
14801
  type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14802
+ type GPUPipelineConstantValue = number;
14671
14803
  type GPUSignedOffset32 = number;
14672
14804
  type GPUSize32 = number;
14673
14805
  type GPUSize32Out = number;
@@ -14732,14 +14864,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
14732
14864
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
14733
14865
  type FontFaceSetLoadStatus = "loaded" | "loading";
14734
14866
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
14867
+ type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
14868
+ type GPUAutoLayoutMode = "auto";
14735
14869
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
14736
14870
  type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14737
14871
  type GPUCanvasToneMappingMode = "extended" | "standard";
14872
+ type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
14738
14873
  type GPUCompilationMessageType = "error" | "info" | "warning";
14739
14874
  type GPUDeviceLostReason = "destroyed" | "unknown";
14740
14875
  type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14876
+ type GPUFilterMode = "linear" | "nearest";
14741
14877
  type GPUIndexFormat = "uint16" | "uint32";
14742
14878
  type GPULoadOp = "clear" | "load";
14879
+ type GPUMipmapFilterMode = "linear" | "nearest";
14743
14880
  type GPUPipelineErrorReason = "internal" | "validation";
14744
14881
  type GPUQueryType = "occlusion" | "timestamp";
14745
14882
  type GPUStoreOp = "discard" | "store";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.66",
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
@@ -378,6 +378,12 @@ interface GPUBufferBinding {
378
378
  size?: GPUSize64;
379
379
  }
380
380
 
381
+ interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
382
+ mappedAtCreation?: boolean;
383
+ size: GPUSize64;
384
+ usage: GPUBufferUsageFlags;
385
+ }
386
+
381
387
  interface GPUCanvasConfiguration {
382
388
  alphaMode?: GPUCanvasAlphaMode;
383
389
  colorSpace?: PredefinedColorSpace;
@@ -402,6 +408,9 @@ interface GPUColorDict {
402
408
  interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
403
409
  }
404
410
 
411
+ interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
412
+ }
413
+
405
414
  interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
406
415
  timestampWrites?: GPUComputePassTimestampWrites;
407
416
  }
@@ -412,6 +421,10 @@ interface GPUComputePassTimestampWrites {
412
421
  querySet: GPUQuerySet;
413
422
  }
414
423
 
424
+ interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
425
+ compute: GPUProgrammableStage;
426
+ }
427
+
415
428
  interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
416
429
  colorSpace?: PredefinedColorSpace;
417
430
  premultipliedAlpha?: boolean;
@@ -449,13 +462,37 @@ interface GPUOrigin3DDict {
449
462
  z?: GPUIntegerCoordinate;
450
463
  }
451
464
 
465
+ interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
466
+ layout: GPUPipelineLayout | GPUAutoLayoutMode;
467
+ }
468
+
452
469
  interface GPUPipelineErrorInit {
453
470
  reason: GPUPipelineErrorReason;
454
471
  }
455
472
 
473
+ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
474
+ bindGroupLayouts: (GPUBindGroupLayout | null)[];
475
+ }
476
+
477
+ interface GPUProgrammableStage {
478
+ constants?: Record<string, GPUPipelineConstantValue>;
479
+ entryPoint?: string;
480
+ module: GPUShaderModule;
481
+ }
482
+
483
+ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
484
+ count: GPUSize32;
485
+ type: GPUQueryType;
486
+ }
487
+
456
488
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
457
489
  }
458
490
 
491
+ interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
492
+ depthReadOnly?: boolean;
493
+ stencilReadOnly?: boolean;
494
+ }
495
+
459
496
  interface GPURenderPassColorAttachment {
460
497
  clearValue?: GPUColor;
461
498
  depthSlice?: GPUIntegerCoordinate;
@@ -485,12 +522,35 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
485
522
  timestampWrites?: GPURenderPassTimestampWrites;
486
523
  }
487
524
 
525
+ interface GPURenderPassLayout extends GPUObjectDescriptorBase {
526
+ colorFormats: (GPUTextureFormat | null)[];
527
+ depthStencilFormat?: GPUTextureFormat;
528
+ sampleCount?: GPUSize32;
529
+ }
530
+
488
531
  interface GPURenderPassTimestampWrites {
489
532
  beginningOfPassWriteIndex?: GPUSize32;
490
533
  endOfPassWriteIndex?: GPUSize32;
491
534
  querySet: GPUQuerySet;
492
535
  }
493
536
 
537
+ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
538
+ addressModeU?: GPUAddressMode;
539
+ addressModeV?: GPUAddressMode;
540
+ addressModeW?: GPUAddressMode;
541
+ compare?: GPUCompareFunction;
542
+ lodMaxClamp?: number;
543
+ lodMinClamp?: number;
544
+ magFilter?: GPUFilterMode;
545
+ maxAnisotropy?: number;
546
+ minFilter?: GPUFilterMode;
547
+ mipmapFilter?: GPUMipmapFilterMode;
548
+ }
549
+
550
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
551
+ code: string;
552
+ }
553
+
494
554
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
495
555
  buffer: GPUBuffer;
496
556
  }
@@ -508,6 +568,16 @@ interface GPUTexelCopyTextureInfo {
508
568
  texture: GPUTexture;
509
569
  }
510
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
+
511
581
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
512
582
  arrayLayerCount?: GPUIntegerCoordinate;
513
583
  aspect?: GPUTextureAspect;
@@ -5490,6 +5560,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5490
5560
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5491
5561
  */
5492
5562
  createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5563
+ /**
5564
+ * The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
5565
+ *
5566
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
5567
+ */
5568
+ createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
5569
+ /**
5570
+ * The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
5571
+ *
5572
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
5573
+ */
5574
+ createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
5575
+ /**
5576
+ * The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
5577
+ *
5578
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
5579
+ */
5580
+ createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
5581
+ /**
5582
+ * The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
5583
+ *
5584
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
5585
+ */
5586
+ createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
5587
+ /**
5588
+ * The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
5589
+ *
5590
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
5591
+ */
5592
+ createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
5593
+ /**
5594
+ * The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
5595
+ *
5596
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
5597
+ */
5598
+ createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
5599
+ /**
5600
+ * The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
5601
+ *
5602
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
5603
+ */
5604
+ createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
5605
+ /**
5606
+ * The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
5607
+ *
5608
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
5609
+ */
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;
5493
5623
  /**
5494
5624
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5495
5625
  *
@@ -14655,6 +14785,7 @@ type GLuint = number;
14655
14785
  type GLuint64 = number;
14656
14786
  type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14657
14787
  type GPUBufferDynamicOffset = number;
14788
+ type GPUBufferUsageFlags = number;
14658
14789
  type GPUColor = number[] | GPUColorDict;
14659
14790
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14660
14791
  type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
@@ -14665,6 +14796,7 @@ type GPUIntegerCoordinateOut = number;
14665
14796
  type GPUMapModeFlags = number;
14666
14797
  type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14667
14798
  type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14799
+ type GPUPipelineConstantValue = number;
14668
14800
  type GPUSignedOffset32 = number;
14669
14801
  type GPUSize32 = number;
14670
14802
  type GPUSize32Out = number;
@@ -14729,14 +14861,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
14729
14861
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
14730
14862
  type FontFaceSetLoadStatus = "loaded" | "loading";
14731
14863
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
14864
+ type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
14865
+ type GPUAutoLayoutMode = "auto";
14732
14866
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
14733
14867
  type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14734
14868
  type GPUCanvasToneMappingMode = "extended" | "standard";
14869
+ type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
14735
14870
  type GPUCompilationMessageType = "error" | "info" | "warning";
14736
14871
  type GPUDeviceLostReason = "destroyed" | "unknown";
14737
14872
  type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14873
+ type GPUFilterMode = "linear" | "nearest";
14738
14874
  type GPUIndexFormat = "uint16" | "uint32";
14739
14875
  type GPULoadOp = "clear" | "load";
14876
+ type GPUMipmapFilterMode = "linear" | "nearest";
14740
14877
  type GPUPipelineErrorReason = "internal" | "validation";
14741
14878
  type GPUQueryType = "occlusion" | "timestamp";
14742
14879
  type GPUStoreOp = "discard" | "store";
package/ts5.6/index.d.ts CHANGED
@@ -378,6 +378,12 @@ interface GPUBufferBinding {
378
378
  size?: GPUSize64;
379
379
  }
380
380
 
381
+ interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
382
+ mappedAtCreation?: boolean;
383
+ size: GPUSize64;
384
+ usage: GPUBufferUsageFlags;
385
+ }
386
+
381
387
  interface GPUCanvasConfiguration {
382
388
  alphaMode?: GPUCanvasAlphaMode;
383
389
  colorSpace?: PredefinedColorSpace;
@@ -402,6 +408,9 @@ interface GPUColorDict {
402
408
  interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
403
409
  }
404
410
 
411
+ interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
412
+ }
413
+
405
414
  interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
406
415
  timestampWrites?: GPUComputePassTimestampWrites;
407
416
  }
@@ -412,6 +421,10 @@ interface GPUComputePassTimestampWrites {
412
421
  querySet: GPUQuerySet;
413
422
  }
414
423
 
424
+ interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
425
+ compute: GPUProgrammableStage;
426
+ }
427
+
415
428
  interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
416
429
  colorSpace?: PredefinedColorSpace;
417
430
  premultipliedAlpha?: boolean;
@@ -449,13 +462,37 @@ interface GPUOrigin3DDict {
449
462
  z?: GPUIntegerCoordinate;
450
463
  }
451
464
 
465
+ interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
466
+ layout: GPUPipelineLayout | GPUAutoLayoutMode;
467
+ }
468
+
452
469
  interface GPUPipelineErrorInit {
453
470
  reason: GPUPipelineErrorReason;
454
471
  }
455
472
 
473
+ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
474
+ bindGroupLayouts: (GPUBindGroupLayout | null)[];
475
+ }
476
+
477
+ interface GPUProgrammableStage {
478
+ constants?: Record<string, GPUPipelineConstantValue>;
479
+ entryPoint?: string;
480
+ module: GPUShaderModule;
481
+ }
482
+
483
+ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
484
+ count: GPUSize32;
485
+ type: GPUQueryType;
486
+ }
487
+
456
488
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
457
489
  }
458
490
 
491
+ interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
492
+ depthReadOnly?: boolean;
493
+ stencilReadOnly?: boolean;
494
+ }
495
+
459
496
  interface GPURenderPassColorAttachment {
460
497
  clearValue?: GPUColor;
461
498
  depthSlice?: GPUIntegerCoordinate;
@@ -485,12 +522,35 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
485
522
  timestampWrites?: GPURenderPassTimestampWrites;
486
523
  }
487
524
 
525
+ interface GPURenderPassLayout extends GPUObjectDescriptorBase {
526
+ colorFormats: (GPUTextureFormat | null)[];
527
+ depthStencilFormat?: GPUTextureFormat;
528
+ sampleCount?: GPUSize32;
529
+ }
530
+
488
531
  interface GPURenderPassTimestampWrites {
489
532
  beginningOfPassWriteIndex?: GPUSize32;
490
533
  endOfPassWriteIndex?: GPUSize32;
491
534
  querySet: GPUQuerySet;
492
535
  }
493
536
 
537
+ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
538
+ addressModeU?: GPUAddressMode;
539
+ addressModeV?: GPUAddressMode;
540
+ addressModeW?: GPUAddressMode;
541
+ compare?: GPUCompareFunction;
542
+ lodMaxClamp?: number;
543
+ lodMinClamp?: number;
544
+ magFilter?: GPUFilterMode;
545
+ maxAnisotropy?: number;
546
+ minFilter?: GPUFilterMode;
547
+ mipmapFilter?: GPUMipmapFilterMode;
548
+ }
549
+
550
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
551
+ code: string;
552
+ }
553
+
494
554
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
495
555
  buffer: GPUBuffer;
496
556
  }
@@ -508,6 +568,16 @@ interface GPUTexelCopyTextureInfo {
508
568
  texture: GPUTexture;
509
569
  }
510
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
+
511
581
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
512
582
  arrayLayerCount?: GPUIntegerCoordinate;
513
583
  aspect?: GPUTextureAspect;
@@ -5490,6 +5560,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5490
5560
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5491
5561
  */
5492
5562
  createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5563
+ /**
5564
+ * The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
5565
+ *
5566
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
5567
+ */
5568
+ createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
5569
+ /**
5570
+ * The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
5571
+ *
5572
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
5573
+ */
5574
+ createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
5575
+ /**
5576
+ * The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
5577
+ *
5578
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
5579
+ */
5580
+ createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
5581
+ /**
5582
+ * The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
5583
+ *
5584
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
5585
+ */
5586
+ createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
5587
+ /**
5588
+ * The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
5589
+ *
5590
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
5591
+ */
5592
+ createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
5593
+ /**
5594
+ * The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
5595
+ *
5596
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
5597
+ */
5598
+ createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
5599
+ /**
5600
+ * The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
5601
+ *
5602
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
5603
+ */
5604
+ createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
5605
+ /**
5606
+ * The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
5607
+ *
5608
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
5609
+ */
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;
5493
5623
  /**
5494
5624
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5495
5625
  *
@@ -14655,6 +14785,7 @@ type GLuint = number;
14655
14785
  type GLuint64 = number;
14656
14786
  type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14657
14787
  type GPUBufferDynamicOffset = number;
14788
+ type GPUBufferUsageFlags = number;
14658
14789
  type GPUColor = number[] | GPUColorDict;
14659
14790
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14660
14791
  type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
@@ -14665,6 +14796,7 @@ type GPUIntegerCoordinateOut = number;
14665
14796
  type GPUMapModeFlags = number;
14666
14797
  type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14667
14798
  type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14799
+ type GPUPipelineConstantValue = number;
14668
14800
  type GPUSignedOffset32 = number;
14669
14801
  type GPUSize32 = number;
14670
14802
  type GPUSize32Out = number;
@@ -14729,14 +14861,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
14729
14861
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
14730
14862
  type FontFaceSetLoadStatus = "loaded" | "loading";
14731
14863
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
14864
+ type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
14865
+ type GPUAutoLayoutMode = "auto";
14732
14866
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
14733
14867
  type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14734
14868
  type GPUCanvasToneMappingMode = "extended" | "standard";
14869
+ type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
14735
14870
  type GPUCompilationMessageType = "error" | "info" | "warning";
14736
14871
  type GPUDeviceLostReason = "destroyed" | "unknown";
14737
14872
  type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14873
+ type GPUFilterMode = "linear" | "nearest";
14738
14874
  type GPUIndexFormat = "uint16" | "uint32";
14739
14875
  type GPULoadOp = "clear" | "load";
14876
+ type GPUMipmapFilterMode = "linear" | "nearest";
14740
14877
  type GPUPipelineErrorReason = "internal" | "validation";
14741
14878
  type GPUQueryType = "occlusion" | "timestamp";
14742
14879
  type GPUStoreOp = "discard" | "store";
package/ts5.9/index.d.ts CHANGED
@@ -378,6 +378,12 @@ interface GPUBufferBinding {
378
378
  size?: GPUSize64;
379
379
  }
380
380
 
381
+ interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
382
+ mappedAtCreation?: boolean;
383
+ size: GPUSize64;
384
+ usage: GPUBufferUsageFlags;
385
+ }
386
+
381
387
  interface GPUCanvasConfiguration {
382
388
  alphaMode?: GPUCanvasAlphaMode;
383
389
  colorSpace?: PredefinedColorSpace;
@@ -402,6 +408,9 @@ interface GPUColorDict {
402
408
  interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
403
409
  }
404
410
 
411
+ interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
412
+ }
413
+
405
414
  interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
406
415
  timestampWrites?: GPUComputePassTimestampWrites;
407
416
  }
@@ -412,6 +421,10 @@ interface GPUComputePassTimestampWrites {
412
421
  querySet: GPUQuerySet;
413
422
  }
414
423
 
424
+ interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
425
+ compute: GPUProgrammableStage;
426
+ }
427
+
415
428
  interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
416
429
  colorSpace?: PredefinedColorSpace;
417
430
  premultipliedAlpha?: boolean;
@@ -449,13 +462,37 @@ interface GPUOrigin3DDict {
449
462
  z?: GPUIntegerCoordinate;
450
463
  }
451
464
 
465
+ interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
466
+ layout: GPUPipelineLayout | GPUAutoLayoutMode;
467
+ }
468
+
452
469
  interface GPUPipelineErrorInit {
453
470
  reason: GPUPipelineErrorReason;
454
471
  }
455
472
 
473
+ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
474
+ bindGroupLayouts: (GPUBindGroupLayout | null)[];
475
+ }
476
+
477
+ interface GPUProgrammableStage {
478
+ constants?: Record<string, GPUPipelineConstantValue>;
479
+ entryPoint?: string;
480
+ module: GPUShaderModule;
481
+ }
482
+
483
+ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
484
+ count: GPUSize32;
485
+ type: GPUQueryType;
486
+ }
487
+
456
488
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
457
489
  }
458
490
 
491
+ interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
492
+ depthReadOnly?: boolean;
493
+ stencilReadOnly?: boolean;
494
+ }
495
+
459
496
  interface GPURenderPassColorAttachment {
460
497
  clearValue?: GPUColor;
461
498
  depthSlice?: GPUIntegerCoordinate;
@@ -485,12 +522,35 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
485
522
  timestampWrites?: GPURenderPassTimestampWrites;
486
523
  }
487
524
 
525
+ interface GPURenderPassLayout extends GPUObjectDescriptorBase {
526
+ colorFormats: (GPUTextureFormat | null)[];
527
+ depthStencilFormat?: GPUTextureFormat;
528
+ sampleCount?: GPUSize32;
529
+ }
530
+
488
531
  interface GPURenderPassTimestampWrites {
489
532
  beginningOfPassWriteIndex?: GPUSize32;
490
533
  endOfPassWriteIndex?: GPUSize32;
491
534
  querySet: GPUQuerySet;
492
535
  }
493
536
 
537
+ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
538
+ addressModeU?: GPUAddressMode;
539
+ addressModeV?: GPUAddressMode;
540
+ addressModeW?: GPUAddressMode;
541
+ compare?: GPUCompareFunction;
542
+ lodMaxClamp?: number;
543
+ lodMinClamp?: number;
544
+ magFilter?: GPUFilterMode;
545
+ maxAnisotropy?: number;
546
+ minFilter?: GPUFilterMode;
547
+ mipmapFilter?: GPUMipmapFilterMode;
548
+ }
549
+
550
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
551
+ code: string;
552
+ }
553
+
494
554
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
495
555
  buffer: GPUBuffer;
496
556
  }
@@ -508,6 +568,16 @@ interface GPUTexelCopyTextureInfo {
508
568
  texture: GPUTexture;
509
569
  }
510
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
+
511
581
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
512
582
  arrayLayerCount?: GPUIntegerCoordinate;
513
583
  aspect?: GPUTextureAspect;
@@ -5490,6 +5560,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5490
5560
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5491
5561
  */
5492
5562
  createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5563
+ /**
5564
+ * The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
5565
+ *
5566
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
5567
+ */
5568
+ createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
5569
+ /**
5570
+ * The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
5571
+ *
5572
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
5573
+ */
5574
+ createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
5575
+ /**
5576
+ * The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
5577
+ *
5578
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
5579
+ */
5580
+ createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
5581
+ /**
5582
+ * The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
5583
+ *
5584
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
5585
+ */
5586
+ createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
5587
+ /**
5588
+ * The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
5589
+ *
5590
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
5591
+ */
5592
+ createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
5593
+ /**
5594
+ * The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
5595
+ *
5596
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
5597
+ */
5598
+ createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
5599
+ /**
5600
+ * The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
5601
+ *
5602
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
5603
+ */
5604
+ createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
5605
+ /**
5606
+ * The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
5607
+ *
5608
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
5609
+ */
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;
5493
5623
  /**
5494
5624
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
5495
5625
  *
@@ -14655,6 +14785,7 @@ type GLuint = number;
14655
14785
  type GLuint64 = number;
14656
14786
  type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
14657
14787
  type GPUBufferDynamicOffset = number;
14788
+ type GPUBufferUsageFlags = number;
14658
14789
  type GPUColor = number[] | GPUColorDict;
14659
14790
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
14660
14791
  type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
@@ -14665,6 +14796,7 @@ type GPUIntegerCoordinateOut = number;
14665
14796
  type GPUMapModeFlags = number;
14666
14797
  type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14667
14798
  type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14799
+ type GPUPipelineConstantValue = number;
14668
14800
  type GPUSignedOffset32 = number;
14669
14801
  type GPUSize32 = number;
14670
14802
  type GPUSize32Out = number;
@@ -14729,14 +14861,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
14729
14861
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
14730
14862
  type FontFaceSetLoadStatus = "loaded" | "loading";
14731
14863
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
14864
+ type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
14865
+ type GPUAutoLayoutMode = "auto";
14732
14866
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
14733
14867
  type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14734
14868
  type GPUCanvasToneMappingMode = "extended" | "standard";
14869
+ type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
14735
14870
  type GPUCompilationMessageType = "error" | "info" | "warning";
14736
14871
  type GPUDeviceLostReason = "destroyed" | "unknown";
14737
14872
  type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
14873
+ type GPUFilterMode = "linear" | "nearest";
14738
14874
  type GPUIndexFormat = "uint16" | "uint32";
14739
14875
  type GPULoadOp = "clear" | "load";
14876
+ type GPUMipmapFilterMode = "linear" | "nearest";
14740
14877
  type GPUPipelineErrorReason = "internal" | "validation";
14741
14878
  type GPUQueryType = "occlusion" | "timestamp";
14742
14879
  type GPUStoreOp = "discard" | "store";