@types/serviceworker 0.0.180 → 0.0.182

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
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.180 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.180.
31
+ You can read what changed in version 0.0.182 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.182.
package/index.d.ts CHANGED
@@ -275,6 +275,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
275
275
  fontfaces?: FontFace[];
276
276
  }
277
277
 
278
+ interface GPUColorDict {
279
+ a: number;
280
+ b: number;
281
+ g: number;
282
+ r: number;
283
+ }
284
+
278
285
  interface GPUObjectDescriptorBase {
279
286
  label?: string;
280
287
  }
@@ -283,6 +290,9 @@ interface GPUPipelineErrorInit {
283
290
  reason: GPUPipelineErrorReason;
284
291
  }
285
292
 
293
+ interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
294
+ }
295
+
286
296
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
287
297
  arrayLayerCount?: GPUIntegerCoordinate;
288
298
  aspect?: GPUTextureAspect;
@@ -4200,6 +4210,62 @@ declare var FormData: {
4200
4210
  new(): FormData;
4201
4211
  };
4202
4212
 
4213
+ /**
4214
+ * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
4215
+ * Available only in secure contexts.
4216
+ *
4217
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
4218
+ */
4219
+ interface GPUAdapterInfo {
4220
+ /**
4221
+ * The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
4222
+ *
4223
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
4224
+ */
4225
+ readonly architecture: string;
4226
+ /**
4227
+ * The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
4228
+ *
4229
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
4230
+ */
4231
+ readonly description: string;
4232
+ /**
4233
+ * The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
4234
+ *
4235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
4236
+ */
4237
+ readonly device: string;
4238
+ /**
4239
+ * The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
4240
+ *
4241
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
4242
+ */
4243
+ readonly isFallbackAdapter: boolean;
4244
+ /**
4245
+ * The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4246
+ *
4247
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
4248
+ */
4249
+ readonly subgroupMaxSize: number;
4250
+ /**
4251
+ * The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4252
+ *
4253
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
4254
+ */
4255
+ readonly subgroupMinSize: number;
4256
+ /**
4257
+ * The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
4258
+ *
4259
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
4260
+ */
4261
+ readonly vendor: string;
4262
+ }
4263
+
4264
+ declare var GPUAdapterInfo: {
4265
+ prototype: GPUAdapterInfo;
4266
+ new(): GPUAdapterInfo;
4267
+ };
4268
+
4203
4269
  /**
4204
4270
  * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
4205
4271
  * Available only in secure contexts.
@@ -4613,6 +4679,105 @@ declare var GPURenderBundle: {
4613
4679
  new(): GPURenderBundle;
4614
4680
  };
4615
4681
 
4682
+ /**
4683
+ * The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
4684
+ * Available only in secure contexts.
4685
+ *
4686
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
4687
+ */
4688
+ interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
4689
+ /**
4690
+ * The **`finish()`** method of the GPURenderBundleEncoder interface completes recording of the current render bundle command sequence, returning a GPURenderBundle object that can be passed into a GPURenderPassEncoder.executeBundles() call to execute those commands in a specific render pass.
4691
+ *
4692
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
4693
+ */
4694
+ finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
4695
+ }
4696
+
4697
+ declare var GPURenderBundleEncoder: {
4698
+ prototype: GPURenderBundleEncoder;
4699
+ new(): GPURenderBundleEncoder;
4700
+ };
4701
+
4702
+ interface GPURenderCommandsMixin {
4703
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
4704
+ draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
4705
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
4706
+ drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
4707
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
4708
+ drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4709
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
4710
+ drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4711
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
4712
+ setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
4713
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
4714
+ setPipeline(pipeline: GPURenderPipeline): void;
4715
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
4716
+ setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
4717
+ }
4718
+
4719
+ /**
4720
+ * The **`GPURenderPassEncoder`** interface of the WebGPU API encodes commands related to controlling the vertex and fragment shader stages, as issued by a GPURenderPipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
4721
+ * Available only in secure contexts.
4722
+ *
4723
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
4724
+ */
4725
+ interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
4726
+ /**
4727
+ * The **`beginOcclusionQuery()`** method of the GPURenderPassEncoder interface begins an occlusion query at the specified index of the relevant GPUQuerySet (provided as the value of the occlusionQuerySet descriptor property when invoking GPUCommandEncoder.beginRenderPass() to run the render pass).
4728
+ *
4729
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
4730
+ */
4731
+ beginOcclusionQuery(queryIndex: GPUSize32): void;
4732
+ /**
4733
+ * The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
4734
+ *
4735
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
4736
+ */
4737
+ end(): void;
4738
+ /**
4739
+ * The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
4740
+ *
4741
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
4742
+ */
4743
+ endOcclusionQuery(): void;
4744
+ /**
4745
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
4746
+ *
4747
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
4748
+ */
4749
+ executeBundles(bundles: GPURenderBundle[]): void;
4750
+ /**
4751
+ * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
4752
+ *
4753
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
4754
+ */
4755
+ setBlendConstant(color: GPUColor): void;
4756
+ /**
4757
+ * The **`setScissorRect()`** method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded.
4758
+ *
4759
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
4760
+ */
4761
+ setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
4762
+ /**
4763
+ * The **`setStencilReference()`** method of the GPURenderPassEncoder interface sets the stencil reference value using during stencil tests with the "replace" stencil operation (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the properties defining the various stencil operations).
4764
+ *
4765
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
4766
+ */
4767
+ setStencilReference(reference: GPUStencilValue): void;
4768
+ /**
4769
+ * The **`setViewport()`** method of the GPURenderPassEncoder interface sets the viewport used during the rasterization stage to linearly map from normalized device coordinates to viewport coordinates.
4770
+ *
4771
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
4772
+ */
4773
+ setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
4774
+ }
4775
+
4776
+ declare var GPURenderPassEncoder: {
4777
+ prototype: GPURenderPassEncoder;
4778
+ new(): GPURenderPassEncoder;
4779
+ };
4780
+
4616
4781
  /**
4617
4782
  * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
4618
4783
  * Available only in secure contexts.
@@ -12446,15 +12611,18 @@ type GLsizeiptr = number;
12446
12611
  type GLuint = number;
12447
12612
  type GLuint64 = number;
12448
12613
  type GPUBufferDynamicOffset = number;
12614
+ type GPUColor = number[] | GPUColorDict;
12449
12615
  type GPUFlagsConstant = number;
12450
12616
  type GPUIndex32 = number;
12451
12617
  type GPUIntegerCoordinate = number;
12452
12618
  type GPUIntegerCoordinateOut = number;
12453
12619
  type GPUMapModeFlags = number;
12620
+ type GPUSignedOffset32 = number;
12454
12621
  type GPUSize32 = number;
12455
12622
  type GPUSize32Out = number;
12456
12623
  type GPUSize64 = number;
12457
12624
  type GPUSize64Out = number;
12625
+ type GPUStencilValue = number;
12458
12626
  type GPUTextureUsageFlags = number;
12459
12627
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
12460
12628
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
@@ -12507,6 +12675,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
12507
12675
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12508
12676
  type GPUCompilationMessageType = "error" | "info" | "warning";
12509
12677
  type GPUDeviceLostReason = "destroyed" | "unknown";
12678
+ type GPUIndexFormat = "uint16" | "uint32";
12510
12679
  type GPUPipelineErrorReason = "internal" | "validation";
12511
12680
  type GPUQueryType = "occlusion" | "timestamp";
12512
12681
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
@@ -12649,6 +12818,21 @@ interface GPUBindingCommandsMixin {
12649
12818
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
12650
12819
  }
12651
12820
 
12821
+ interface GPURenderPassEncoder {
12822
+ /**
12823
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
12824
+ *
12825
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
12826
+ */
12827
+ executeBundles(bundles: GPURenderBundle[]): void;
12828
+ /**
12829
+ * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
12830
+ *
12831
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
12832
+ */
12833
+ setBlendConstant(color: number[]): void;
12834
+ }
12835
+
12652
12836
  interface GPUSupportedFeatures extends ReadonlySet<string> {
12653
12837
  }
12654
12838
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.180",
3
+ "version": "0.0.182",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -272,6 +272,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
272
272
  fontfaces?: FontFace[];
273
273
  }
274
274
 
275
+ interface GPUColorDict {
276
+ a: number;
277
+ b: number;
278
+ g: number;
279
+ r: number;
280
+ }
281
+
275
282
  interface GPUObjectDescriptorBase {
276
283
  label?: string;
277
284
  }
@@ -280,6 +287,9 @@ interface GPUPipelineErrorInit {
280
287
  reason: GPUPipelineErrorReason;
281
288
  }
282
289
 
290
+ interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
291
+ }
292
+
283
293
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
284
294
  arrayLayerCount?: GPUIntegerCoordinate;
285
295
  aspect?: GPUTextureAspect;
@@ -4197,6 +4207,62 @@ declare var FormData: {
4197
4207
  new(): FormData;
4198
4208
  };
4199
4209
 
4210
+ /**
4211
+ * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
4212
+ * Available only in secure contexts.
4213
+ *
4214
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
4215
+ */
4216
+ interface GPUAdapterInfo {
4217
+ /**
4218
+ * The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
4219
+ *
4220
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
4221
+ */
4222
+ readonly architecture: string;
4223
+ /**
4224
+ * The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
4225
+ *
4226
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
4227
+ */
4228
+ readonly description: string;
4229
+ /**
4230
+ * The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
4231
+ *
4232
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
4233
+ */
4234
+ readonly device: string;
4235
+ /**
4236
+ * The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
4237
+ *
4238
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
4239
+ */
4240
+ readonly isFallbackAdapter: boolean;
4241
+ /**
4242
+ * The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4243
+ *
4244
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
4245
+ */
4246
+ readonly subgroupMaxSize: number;
4247
+ /**
4248
+ * The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4249
+ *
4250
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
4251
+ */
4252
+ readonly subgroupMinSize: number;
4253
+ /**
4254
+ * The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
4255
+ *
4256
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
4257
+ */
4258
+ readonly vendor: string;
4259
+ }
4260
+
4261
+ declare var GPUAdapterInfo: {
4262
+ prototype: GPUAdapterInfo;
4263
+ new(): GPUAdapterInfo;
4264
+ };
4265
+
4200
4266
  /**
4201
4267
  * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
4202
4268
  * Available only in secure contexts.
@@ -4610,6 +4676,105 @@ declare var GPURenderBundle: {
4610
4676
  new(): GPURenderBundle;
4611
4677
  };
4612
4678
 
4679
+ /**
4680
+ * The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
4681
+ * Available only in secure contexts.
4682
+ *
4683
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
4684
+ */
4685
+ interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
4686
+ /**
4687
+ * The **`finish()`** method of the GPURenderBundleEncoder interface completes recording of the current render bundle command sequence, returning a GPURenderBundle object that can be passed into a GPURenderPassEncoder.executeBundles() call to execute those commands in a specific render pass.
4688
+ *
4689
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
4690
+ */
4691
+ finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
4692
+ }
4693
+
4694
+ declare var GPURenderBundleEncoder: {
4695
+ prototype: GPURenderBundleEncoder;
4696
+ new(): GPURenderBundleEncoder;
4697
+ };
4698
+
4699
+ interface GPURenderCommandsMixin {
4700
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
4701
+ draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
4702
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
4703
+ drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
4704
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
4705
+ drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4706
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
4707
+ drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4708
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
4709
+ setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
4710
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
4711
+ setPipeline(pipeline: GPURenderPipeline): void;
4712
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
4713
+ setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
4714
+ }
4715
+
4716
+ /**
4717
+ * The **`GPURenderPassEncoder`** interface of the WebGPU API encodes commands related to controlling the vertex and fragment shader stages, as issued by a GPURenderPipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
4718
+ * Available only in secure contexts.
4719
+ *
4720
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
4721
+ */
4722
+ interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
4723
+ /**
4724
+ * The **`beginOcclusionQuery()`** method of the GPURenderPassEncoder interface begins an occlusion query at the specified index of the relevant GPUQuerySet (provided as the value of the occlusionQuerySet descriptor property when invoking GPUCommandEncoder.beginRenderPass() to run the render pass).
4725
+ *
4726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
4727
+ */
4728
+ beginOcclusionQuery(queryIndex: GPUSize32): void;
4729
+ /**
4730
+ * The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
4731
+ *
4732
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
4733
+ */
4734
+ end(): void;
4735
+ /**
4736
+ * The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
4737
+ *
4738
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
4739
+ */
4740
+ endOcclusionQuery(): void;
4741
+ /**
4742
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
4743
+ *
4744
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
4745
+ */
4746
+ executeBundles(bundles: GPURenderBundle[]): void;
4747
+ /**
4748
+ * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
4749
+ *
4750
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
4751
+ */
4752
+ setBlendConstant(color: GPUColor): void;
4753
+ /**
4754
+ * The **`setScissorRect()`** method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded.
4755
+ *
4756
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
4757
+ */
4758
+ setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
4759
+ /**
4760
+ * The **`setStencilReference()`** method of the GPURenderPassEncoder interface sets the stencil reference value using during stencil tests with the "replace" stencil operation (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the properties defining the various stencil operations).
4761
+ *
4762
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
4763
+ */
4764
+ setStencilReference(reference: GPUStencilValue): void;
4765
+ /**
4766
+ * The **`setViewport()`** method of the GPURenderPassEncoder interface sets the viewport used during the rasterization stage to linearly map from normalized device coordinates to viewport coordinates.
4767
+ *
4768
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
4769
+ */
4770
+ setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
4771
+ }
4772
+
4773
+ declare var GPURenderPassEncoder: {
4774
+ prototype: GPURenderPassEncoder;
4775
+ new(): GPURenderPassEncoder;
4776
+ };
4777
+
4613
4778
  /**
4614
4779
  * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
4615
4780
  * Available only in secure contexts.
@@ -12443,15 +12608,18 @@ type GLsizeiptr = number;
12443
12608
  type GLuint = number;
12444
12609
  type GLuint64 = number;
12445
12610
  type GPUBufferDynamicOffset = number;
12611
+ type GPUColor = number[] | GPUColorDict;
12446
12612
  type GPUFlagsConstant = number;
12447
12613
  type GPUIndex32 = number;
12448
12614
  type GPUIntegerCoordinate = number;
12449
12615
  type GPUIntegerCoordinateOut = number;
12450
12616
  type GPUMapModeFlags = number;
12617
+ type GPUSignedOffset32 = number;
12451
12618
  type GPUSize32 = number;
12452
12619
  type GPUSize32Out = number;
12453
12620
  type GPUSize64 = number;
12454
12621
  type GPUSize64Out = number;
12622
+ type GPUStencilValue = number;
12455
12623
  type GPUTextureUsageFlags = number;
12456
12624
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
12457
12625
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
@@ -12504,6 +12672,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
12504
12672
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12505
12673
  type GPUCompilationMessageType = "error" | "info" | "warning";
12506
12674
  type GPUDeviceLostReason = "destroyed" | "unknown";
12675
+ type GPUIndexFormat = "uint16" | "uint32";
12507
12676
  type GPUPipelineErrorReason = "internal" | "validation";
12508
12677
  type GPUQueryType = "occlusion" | "timestamp";
12509
12678
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
@@ -83,6 +83,21 @@ interface GPUBindingCommandsMixin {
83
83
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
84
84
  }
85
85
 
86
+ interface GPURenderPassEncoder {
87
+ /**
88
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
89
+ *
90
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
91
+ */
92
+ executeBundles(bundles: Iterable<GPURenderBundle>): void;
93
+ /**
94
+ * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
95
+ *
96
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
97
+ */
98
+ setBlendConstant(color: Iterable<number>): void;
99
+ }
100
+
86
101
  interface GPUSupportedFeatures extends ReadonlySet<string> {
87
102
  }
88
103
 
package/ts5.6/index.d.ts CHANGED
@@ -272,6 +272,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
272
272
  fontfaces?: FontFace[];
273
273
  }
274
274
 
275
+ interface GPUColorDict {
276
+ a: number;
277
+ b: number;
278
+ g: number;
279
+ r: number;
280
+ }
281
+
275
282
  interface GPUObjectDescriptorBase {
276
283
  label?: string;
277
284
  }
@@ -280,6 +287,9 @@ interface GPUPipelineErrorInit {
280
287
  reason: GPUPipelineErrorReason;
281
288
  }
282
289
 
290
+ interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
291
+ }
292
+
283
293
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
284
294
  arrayLayerCount?: GPUIntegerCoordinate;
285
295
  aspect?: GPUTextureAspect;
@@ -4197,6 +4207,62 @@ declare var FormData: {
4197
4207
  new(): FormData;
4198
4208
  };
4199
4209
 
4210
+ /**
4211
+ * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
4212
+ * Available only in secure contexts.
4213
+ *
4214
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
4215
+ */
4216
+ interface GPUAdapterInfo {
4217
+ /**
4218
+ * The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
4219
+ *
4220
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
4221
+ */
4222
+ readonly architecture: string;
4223
+ /**
4224
+ * The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
4225
+ *
4226
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
4227
+ */
4228
+ readonly description: string;
4229
+ /**
4230
+ * The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
4231
+ *
4232
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
4233
+ */
4234
+ readonly device: string;
4235
+ /**
4236
+ * The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
4237
+ *
4238
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
4239
+ */
4240
+ readonly isFallbackAdapter: boolean;
4241
+ /**
4242
+ * The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4243
+ *
4244
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
4245
+ */
4246
+ readonly subgroupMaxSize: number;
4247
+ /**
4248
+ * The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4249
+ *
4250
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
4251
+ */
4252
+ readonly subgroupMinSize: number;
4253
+ /**
4254
+ * The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
4255
+ *
4256
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
4257
+ */
4258
+ readonly vendor: string;
4259
+ }
4260
+
4261
+ declare var GPUAdapterInfo: {
4262
+ prototype: GPUAdapterInfo;
4263
+ new(): GPUAdapterInfo;
4264
+ };
4265
+
4200
4266
  /**
4201
4267
  * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
4202
4268
  * Available only in secure contexts.
@@ -4610,6 +4676,105 @@ declare var GPURenderBundle: {
4610
4676
  new(): GPURenderBundle;
4611
4677
  };
4612
4678
 
4679
+ /**
4680
+ * The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
4681
+ * Available only in secure contexts.
4682
+ *
4683
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
4684
+ */
4685
+ interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
4686
+ /**
4687
+ * The **`finish()`** method of the GPURenderBundleEncoder interface completes recording of the current render bundle command sequence, returning a GPURenderBundle object that can be passed into a GPURenderPassEncoder.executeBundles() call to execute those commands in a specific render pass.
4688
+ *
4689
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
4690
+ */
4691
+ finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
4692
+ }
4693
+
4694
+ declare var GPURenderBundleEncoder: {
4695
+ prototype: GPURenderBundleEncoder;
4696
+ new(): GPURenderBundleEncoder;
4697
+ };
4698
+
4699
+ interface GPURenderCommandsMixin {
4700
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
4701
+ draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
4702
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
4703
+ drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
4704
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
4705
+ drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4706
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
4707
+ drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4708
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
4709
+ setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
4710
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
4711
+ setPipeline(pipeline: GPURenderPipeline): void;
4712
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
4713
+ setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
4714
+ }
4715
+
4716
+ /**
4717
+ * The **`GPURenderPassEncoder`** interface of the WebGPU API encodes commands related to controlling the vertex and fragment shader stages, as issued by a GPURenderPipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
4718
+ * Available only in secure contexts.
4719
+ *
4720
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
4721
+ */
4722
+ interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
4723
+ /**
4724
+ * The **`beginOcclusionQuery()`** method of the GPURenderPassEncoder interface begins an occlusion query at the specified index of the relevant GPUQuerySet (provided as the value of the occlusionQuerySet descriptor property when invoking GPUCommandEncoder.beginRenderPass() to run the render pass).
4725
+ *
4726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
4727
+ */
4728
+ beginOcclusionQuery(queryIndex: GPUSize32): void;
4729
+ /**
4730
+ * The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
4731
+ *
4732
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
4733
+ */
4734
+ end(): void;
4735
+ /**
4736
+ * The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
4737
+ *
4738
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
4739
+ */
4740
+ endOcclusionQuery(): void;
4741
+ /**
4742
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
4743
+ *
4744
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
4745
+ */
4746
+ executeBundles(bundles: GPURenderBundle[]): void;
4747
+ /**
4748
+ * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
4749
+ *
4750
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
4751
+ */
4752
+ setBlendConstant(color: GPUColor): void;
4753
+ /**
4754
+ * The **`setScissorRect()`** method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded.
4755
+ *
4756
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
4757
+ */
4758
+ setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
4759
+ /**
4760
+ * The **`setStencilReference()`** method of the GPURenderPassEncoder interface sets the stencil reference value using during stencil tests with the "replace" stencil operation (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the properties defining the various stencil operations).
4761
+ *
4762
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
4763
+ */
4764
+ setStencilReference(reference: GPUStencilValue): void;
4765
+ /**
4766
+ * The **`setViewport()`** method of the GPURenderPassEncoder interface sets the viewport used during the rasterization stage to linearly map from normalized device coordinates to viewport coordinates.
4767
+ *
4768
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
4769
+ */
4770
+ setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
4771
+ }
4772
+
4773
+ declare var GPURenderPassEncoder: {
4774
+ prototype: GPURenderPassEncoder;
4775
+ new(): GPURenderPassEncoder;
4776
+ };
4777
+
4613
4778
  /**
4614
4779
  * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
4615
4780
  * Available only in secure contexts.
@@ -12443,15 +12608,18 @@ type GLsizeiptr = number;
12443
12608
  type GLuint = number;
12444
12609
  type GLuint64 = number;
12445
12610
  type GPUBufferDynamicOffset = number;
12611
+ type GPUColor = number[] | GPUColorDict;
12446
12612
  type GPUFlagsConstant = number;
12447
12613
  type GPUIndex32 = number;
12448
12614
  type GPUIntegerCoordinate = number;
12449
12615
  type GPUIntegerCoordinateOut = number;
12450
12616
  type GPUMapModeFlags = number;
12617
+ type GPUSignedOffset32 = number;
12451
12618
  type GPUSize32 = number;
12452
12619
  type GPUSize32Out = number;
12453
12620
  type GPUSize64 = number;
12454
12621
  type GPUSize64Out = number;
12622
+ type GPUStencilValue = number;
12455
12623
  type GPUTextureUsageFlags = number;
12456
12624
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
12457
12625
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
@@ -12504,6 +12672,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
12504
12672
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12505
12673
  type GPUCompilationMessageType = "error" | "info" | "warning";
12506
12674
  type GPUDeviceLostReason = "destroyed" | "unknown";
12675
+ type GPUIndexFormat = "uint16" | "uint32";
12507
12676
  type GPUPipelineErrorReason = "internal" | "validation";
12508
12677
  type GPUQueryType = "occlusion" | "timestamp";
12509
12678
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
@@ -87,6 +87,21 @@ interface GPUBindingCommandsMixin {
87
87
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
88
88
  }
89
89
 
90
+ interface GPURenderPassEncoder {
91
+ /**
92
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
93
+ *
94
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
95
+ */
96
+ executeBundles(bundles: Iterable<GPURenderBundle>): void;
97
+ /**
98
+ * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
99
+ *
100
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
101
+ */
102
+ setBlendConstant(color: Iterable<number>): void;
103
+ }
104
+
90
105
  interface GPUSupportedFeatures extends ReadonlySet<string> {
91
106
  }
92
107
 
package/ts5.9/index.d.ts CHANGED
@@ -272,6 +272,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
272
272
  fontfaces?: FontFace[];
273
273
  }
274
274
 
275
+ interface GPUColorDict {
276
+ a: number;
277
+ b: number;
278
+ g: number;
279
+ r: number;
280
+ }
281
+
275
282
  interface GPUObjectDescriptorBase {
276
283
  label?: string;
277
284
  }
@@ -280,6 +287,9 @@ interface GPUPipelineErrorInit {
280
287
  reason: GPUPipelineErrorReason;
281
288
  }
282
289
 
290
+ interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
291
+ }
292
+
283
293
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
284
294
  arrayLayerCount?: GPUIntegerCoordinate;
285
295
  aspect?: GPUTextureAspect;
@@ -4197,6 +4207,62 @@ declare var FormData: {
4197
4207
  new(): FormData;
4198
4208
  };
4199
4209
 
4210
+ /**
4211
+ * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
4212
+ * Available only in secure contexts.
4213
+ *
4214
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
4215
+ */
4216
+ interface GPUAdapterInfo {
4217
+ /**
4218
+ * The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
4219
+ *
4220
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
4221
+ */
4222
+ readonly architecture: string;
4223
+ /**
4224
+ * The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
4225
+ *
4226
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
4227
+ */
4228
+ readonly description: string;
4229
+ /**
4230
+ * The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
4231
+ *
4232
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
4233
+ */
4234
+ readonly device: string;
4235
+ /**
4236
+ * The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
4237
+ *
4238
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
4239
+ */
4240
+ readonly isFallbackAdapter: boolean;
4241
+ /**
4242
+ * The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4243
+ *
4244
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
4245
+ */
4246
+ readonly subgroupMaxSize: number;
4247
+ /**
4248
+ * The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4249
+ *
4250
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
4251
+ */
4252
+ readonly subgroupMinSize: number;
4253
+ /**
4254
+ * The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
4255
+ *
4256
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
4257
+ */
4258
+ readonly vendor: string;
4259
+ }
4260
+
4261
+ declare var GPUAdapterInfo: {
4262
+ prototype: GPUAdapterInfo;
4263
+ new(): GPUAdapterInfo;
4264
+ };
4265
+
4200
4266
  /**
4201
4267
  * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
4202
4268
  * Available only in secure contexts.
@@ -4610,6 +4676,105 @@ declare var GPURenderBundle: {
4610
4676
  new(): GPURenderBundle;
4611
4677
  };
4612
4678
 
4679
+ /**
4680
+ * The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
4681
+ * Available only in secure contexts.
4682
+ *
4683
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
4684
+ */
4685
+ interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
4686
+ /**
4687
+ * The **`finish()`** method of the GPURenderBundleEncoder interface completes recording of the current render bundle command sequence, returning a GPURenderBundle object that can be passed into a GPURenderPassEncoder.executeBundles() call to execute those commands in a specific render pass.
4688
+ *
4689
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
4690
+ */
4691
+ finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
4692
+ }
4693
+
4694
+ declare var GPURenderBundleEncoder: {
4695
+ prototype: GPURenderBundleEncoder;
4696
+ new(): GPURenderBundleEncoder;
4697
+ };
4698
+
4699
+ interface GPURenderCommandsMixin {
4700
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
4701
+ draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
4702
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
4703
+ drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
4704
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
4705
+ drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4706
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
4707
+ drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4708
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
4709
+ setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
4710
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
4711
+ setPipeline(pipeline: GPURenderPipeline): void;
4712
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
4713
+ setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
4714
+ }
4715
+
4716
+ /**
4717
+ * The **`GPURenderPassEncoder`** interface of the WebGPU API encodes commands related to controlling the vertex and fragment shader stages, as issued by a GPURenderPipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
4718
+ * Available only in secure contexts.
4719
+ *
4720
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
4721
+ */
4722
+ interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
4723
+ /**
4724
+ * The **`beginOcclusionQuery()`** method of the GPURenderPassEncoder interface begins an occlusion query at the specified index of the relevant GPUQuerySet (provided as the value of the occlusionQuerySet descriptor property when invoking GPUCommandEncoder.beginRenderPass() to run the render pass).
4725
+ *
4726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
4727
+ */
4728
+ beginOcclusionQuery(queryIndex: GPUSize32): void;
4729
+ /**
4730
+ * The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
4731
+ *
4732
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
4733
+ */
4734
+ end(): void;
4735
+ /**
4736
+ * The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
4737
+ *
4738
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
4739
+ */
4740
+ endOcclusionQuery(): void;
4741
+ /**
4742
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
4743
+ *
4744
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
4745
+ */
4746
+ executeBundles(bundles: GPURenderBundle[]): void;
4747
+ /**
4748
+ * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
4749
+ *
4750
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
4751
+ */
4752
+ setBlendConstant(color: GPUColor): void;
4753
+ /**
4754
+ * The **`setScissorRect()`** method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded.
4755
+ *
4756
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
4757
+ */
4758
+ setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
4759
+ /**
4760
+ * The **`setStencilReference()`** method of the GPURenderPassEncoder interface sets the stencil reference value using during stencil tests with the "replace" stencil operation (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the properties defining the various stencil operations).
4761
+ *
4762
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
4763
+ */
4764
+ setStencilReference(reference: GPUStencilValue): void;
4765
+ /**
4766
+ * The **`setViewport()`** method of the GPURenderPassEncoder interface sets the viewport used during the rasterization stage to linearly map from normalized device coordinates to viewport coordinates.
4767
+ *
4768
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
4769
+ */
4770
+ setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
4771
+ }
4772
+
4773
+ declare var GPURenderPassEncoder: {
4774
+ prototype: GPURenderPassEncoder;
4775
+ new(): GPURenderPassEncoder;
4776
+ };
4777
+
4613
4778
  /**
4614
4779
  * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
4615
4780
  * Available only in secure contexts.
@@ -12443,15 +12608,18 @@ type GLsizeiptr = number;
12443
12608
  type GLuint = number;
12444
12609
  type GLuint64 = number;
12445
12610
  type GPUBufferDynamicOffset = number;
12611
+ type GPUColor = number[] | GPUColorDict;
12446
12612
  type GPUFlagsConstant = number;
12447
12613
  type GPUIndex32 = number;
12448
12614
  type GPUIntegerCoordinate = number;
12449
12615
  type GPUIntegerCoordinateOut = number;
12450
12616
  type GPUMapModeFlags = number;
12617
+ type GPUSignedOffset32 = number;
12451
12618
  type GPUSize32 = number;
12452
12619
  type GPUSize32Out = number;
12453
12620
  type GPUSize64 = number;
12454
12621
  type GPUSize64Out = number;
12622
+ type GPUStencilValue = number;
12455
12623
  type GPUTextureUsageFlags = number;
12456
12624
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
12457
12625
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
@@ -12504,6 +12672,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
12504
12672
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12505
12673
  type GPUCompilationMessageType = "error" | "info" | "warning";
12506
12674
  type GPUDeviceLostReason = "destroyed" | "unknown";
12675
+ type GPUIndexFormat = "uint16" | "uint32";
12507
12676
  type GPUPipelineErrorReason = "internal" | "validation";
12508
12677
  type GPUQueryType = "occlusion" | "timestamp";
12509
12678
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
@@ -87,6 +87,21 @@ interface GPUBindingCommandsMixin {
87
87
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
88
88
  }
89
89
 
90
+ interface GPURenderPassEncoder {
91
+ /**
92
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
93
+ *
94
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
95
+ */
96
+ executeBundles(bundles: Iterable<GPURenderBundle>): void;
97
+ /**
98
+ * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
99
+ *
100
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
101
+ */
102
+ setBlendConstant(color: Iterable<number>): void;
103
+ }
104
+
90
105
  interface GPUSupportedFeatures extends ReadonlySet<string> {
91
106
  }
92
107