@types/web 0.0.320 → 0.0.322

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.
@@ -138,6 +138,26 @@ interface FormData {
138
138
  values(): IterableIterator<FormDataEntryValue>;
139
139
  }
140
140
 
141
+ interface GPUBindingCommandsMixin {
142
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
143
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
144
+ }
145
+
146
+ interface GPURenderPassEncoder {
147
+ /**
148
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
149
+ *
150
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
151
+ */
152
+ executeBundles(bundles: Iterable<GPURenderBundle>): void;
153
+ /**
154
+ * 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).
155
+ *
156
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
157
+ */
158
+ setBlendConstant(color: Iterable<number>): void;
159
+ }
160
+
141
161
  interface GPUSupportedFeatures extends ReadonlySet<string> {
142
162
  }
143
163
 
package/ts5.6/index.d.ts CHANGED
@@ -805,6 +805,13 @@ interface FullscreenOptions {
805
805
  navigationUI?: FullscreenNavigationUI;
806
806
  }
807
807
 
808
+ interface GPUColorDict {
809
+ a: number;
810
+ b: number;
811
+ g: number;
812
+ r: number;
813
+ }
814
+
808
815
  interface GPUObjectDescriptorBase {
809
816
  label?: string;
810
817
  }
@@ -813,6 +820,9 @@ interface GPUPipelineErrorInit {
813
820
  reason: GPUPipelineErrorReason;
814
821
  }
815
822
 
823
+ interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
824
+ }
825
+
816
826
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
817
827
  arrayLayerCount?: GPUIntegerCoordinate;
818
828
  aspect?: GPUTextureAspect;
@@ -3097,7 +3107,7 @@ interface AbstractRange {
3097
3107
  */
3098
3108
  readonly endOffset: number;
3099
3109
  /**
3100
- * The read-only **`startContainer`** property of the AbstractRange interface returns the start Node for the range.
3110
+ * The read-only **`startContainer`** property of the AbstractRange interface returns the Node in which the start of the range is located.
3101
3111
  *
3102
3112
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)
3103
3113
  */
@@ -8385,7 +8395,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
8385
8395
  */
8386
8396
  scrollMarginTop: string;
8387
8397
  /**
8388
- * The scroll-padding shorthand property sets scroll padding on all sides of an element at once, much like the padding property does for padding on an element.
8398
+ * The scroll-padding shorthand property sets scroll padding on all sides of an element at once. It specifies offsets that define the optimal viewing region of a scrollport within a scroll container.
8389
8399
  *
8390
8400
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/scroll-padding)
8391
8401
  */
@@ -14782,6 +14792,12 @@ declare var GPUBindGroupLayout: {
14782
14792
  new(): GPUBindGroupLayout;
14783
14793
  };
14784
14794
 
14795
+ interface GPUBindingCommandsMixin {
14796
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
14797
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
14798
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
14799
+ }
14800
+
14785
14801
  /**
14786
14802
  * The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
14787
14803
  * Available only in secure contexts.
@@ -14922,6 +14938,44 @@ declare var GPUCompilationMessage: {
14922
14938
  new(): GPUCompilationMessage;
14923
14939
  };
14924
14940
 
14941
+ /**
14942
+ * The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
14943
+ * Available only in secure contexts.
14944
+ *
14945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
14946
+ */
14947
+ interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
14948
+ /**
14949
+ * The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
14950
+ *
14951
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
14952
+ */
14953
+ dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
14954
+ /**
14955
+ * The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
14956
+ *
14957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
14958
+ */
14959
+ dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
14960
+ /**
14961
+ * The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
14962
+ *
14963
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
14964
+ */
14965
+ end(): void;
14966
+ /**
14967
+ * The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
14968
+ *
14969
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
14970
+ */
14971
+ setPipeline(pipeline: GPUComputePipeline): void;
14972
+ }
14973
+
14974
+ declare var GPUComputePassEncoder: {
14975
+ prototype: GPUComputePassEncoder;
14976
+ new(): GPUComputePassEncoder;
14977
+ };
14978
+
14925
14979
  /**
14926
14980
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
14927
14981
  * Available only in secure contexts.
@@ -14936,6 +14990,15 @@ declare var GPUComputePipeline: {
14936
14990
  new(): GPUComputePipeline;
14937
14991
  };
14938
14992
 
14993
+ interface GPUDebugCommandsMixin {
14994
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
14995
+ insertDebugMarker(markerLabel: string): void;
14996
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
14997
+ popDebugGroup(): void;
14998
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
14999
+ pushDebugGroup(groupLabel: string): void;
15000
+ }
15001
+
14939
15002
  /**
14940
15003
  * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
14941
15004
  * Available only in secure contexts.
@@ -15068,6 +15131,38 @@ declare var GPUPipelineLayout: {
15068
15131
  new(): GPUPipelineLayout;
15069
15132
  };
15070
15133
 
15134
+ /**
15135
+ * The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
15136
+ * Available only in secure contexts.
15137
+ *
15138
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
15139
+ */
15140
+ interface GPUQuerySet extends GPUObjectBase {
15141
+ /**
15142
+ * The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
15143
+ *
15144
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
15145
+ */
15146
+ readonly count: GPUSize32Out;
15147
+ /**
15148
+ * The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
15149
+ *
15150
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
15151
+ */
15152
+ readonly type: GPUQueryType;
15153
+ /**
15154
+ * The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
15155
+ *
15156
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
15157
+ */
15158
+ destroy(): void;
15159
+ }
15160
+
15161
+ declare var GPUQuerySet: {
15162
+ prototype: GPUQuerySet;
15163
+ new(): GPUQuerySet;
15164
+ };
15165
+
15071
15166
  /**
15072
15167
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15073
15168
  * Available only in secure contexts.
@@ -15082,6 +15177,105 @@ declare var GPURenderBundle: {
15082
15177
  new(): GPURenderBundle;
15083
15178
  };
15084
15179
 
15180
+ /**
15181
+ * The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
15182
+ * Available only in secure contexts.
15183
+ *
15184
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
15185
+ */
15186
+ interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
15187
+ /**
15188
+ * 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.
15189
+ *
15190
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
15191
+ */
15192
+ finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
15193
+ }
15194
+
15195
+ declare var GPURenderBundleEncoder: {
15196
+ prototype: GPURenderBundleEncoder;
15197
+ new(): GPURenderBundleEncoder;
15198
+ };
15199
+
15200
+ interface GPURenderCommandsMixin {
15201
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
15202
+ draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
15203
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
15204
+ drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
15205
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
15206
+ drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
15207
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
15208
+ drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
15209
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
15210
+ setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
15211
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
15212
+ setPipeline(pipeline: GPURenderPipeline): void;
15213
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
15214
+ setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
15215
+ }
15216
+
15217
+ /**
15218
+ * 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.
15219
+ * Available only in secure contexts.
15220
+ *
15221
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
15222
+ */
15223
+ interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
15224
+ /**
15225
+ * 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).
15226
+ *
15227
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
15228
+ */
15229
+ beginOcclusionQuery(queryIndex: GPUSize32): void;
15230
+ /**
15231
+ * The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
15232
+ *
15233
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
15234
+ */
15235
+ end(): void;
15236
+ /**
15237
+ * The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
15238
+ *
15239
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
15240
+ */
15241
+ endOcclusionQuery(): void;
15242
+ /**
15243
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
15244
+ *
15245
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
15246
+ */
15247
+ executeBundles(bundles: GPURenderBundle[]): void;
15248
+ /**
15249
+ * 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).
15250
+ *
15251
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
15252
+ */
15253
+ setBlendConstant(color: GPUColor): void;
15254
+ /**
15255
+ * 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.
15256
+ *
15257
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
15258
+ */
15259
+ setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
15260
+ /**
15261
+ * 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).
15262
+ *
15263
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
15264
+ */
15265
+ setStencilReference(reference: GPUStencilValue): void;
15266
+ /**
15267
+ * 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.
15268
+ *
15269
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
15270
+ */
15271
+ setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
15272
+ }
15273
+
15274
+ declare var GPURenderPassEncoder: {
15275
+ prototype: GPURenderPassEncoder;
15276
+ new(): GPURenderPassEncoder;
15277
+ };
15278
+
15085
15279
  /**
15086
15280
  * 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.
15087
15281
  * Available only in secure contexts.
@@ -29020,7 +29214,7 @@ declare var RadioNodeList: {
29020
29214
  */
29021
29215
  interface Range extends AbstractRange {
29022
29216
  /**
29023
- * The **`Range.commonAncestorContainer`** read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the Range. This means that if Range.startContainer and Range.endContainer both refer to the same node, this node is the common ancestor container.
29217
+ * The **`Range.commonAncestorContainer`** read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the Range. This means that if startContainer and endContainer both refer to the same node, this node is the common ancestor container.
29024
29218
  *
29025
29219
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
29026
29220
  */
@@ -42298,6 +42492,7 @@ interface SVGElementTagNameMap {
42298
42492
  }
42299
42493
 
42300
42494
  interface MathMLElementTagNameMap {
42495
+ "a": MathMLElement;
42301
42496
  "annotation": MathMLElement;
42302
42497
  "annotation-xml": MathMLElement;
42303
42498
  "maction": MathMLElement;
@@ -43158,13 +43353,19 @@ type GLsizei = number;
43158
43353
  type GLsizeiptr = number;
43159
43354
  type GLuint = number;
43160
43355
  type GLuint64 = number;
43356
+ type GPUBufferDynamicOffset = number;
43357
+ type GPUColor = number[] | GPUColorDict;
43161
43358
  type GPUFlagsConstant = number;
43359
+ type GPUIndex32 = number;
43162
43360
  type GPUIntegerCoordinate = number;
43163
43361
  type GPUIntegerCoordinateOut = number;
43164
43362
  type GPUMapModeFlags = number;
43363
+ type GPUSignedOffset32 = number;
43364
+ type GPUSize32 = number;
43165
43365
  type GPUSize32Out = number;
43166
43366
  type GPUSize64 = number;
43167
43367
  type GPUSize64Out = number;
43368
+ type GPUStencilValue = number;
43168
43369
  type GPUTextureUsageFlags = number;
43169
43370
  type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
43170
43371
  type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
@@ -43275,7 +43476,9 @@ type FullscreenNavigationUI = "auto" | "hide" | "show";
43275
43476
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
43276
43477
  type GPUCompilationMessageType = "error" | "info" | "warning";
43277
43478
  type GPUDeviceLostReason = "destroyed" | "unknown";
43479
+ type GPUIndexFormat = "uint16" | "uint32";
43278
43480
  type GPUPipelineErrorReason = "internal" | "validation";
43481
+ type GPUQueryType = "occlusion" | "timestamp";
43279
43482
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43280
43483
  type GPUTextureDimension = "1d" | "2d" | "3d";
43281
43484
  type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
@@ -142,6 +142,26 @@ interface FormData {
142
142
  values(): FormDataIterator<FormDataEntryValue>;
143
143
  }
144
144
 
145
+ interface GPUBindingCommandsMixin {
146
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
147
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
148
+ }
149
+
150
+ interface GPURenderPassEncoder {
151
+ /**
152
+ * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
153
+ *
154
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
155
+ */
156
+ executeBundles(bundles: Iterable<GPURenderBundle>): void;
157
+ /**
158
+ * 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).
159
+ *
160
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
161
+ */
162
+ setBlendConstant(color: Iterable<number>): void;
163
+ }
164
+
145
165
  interface GPUSupportedFeatures extends ReadonlySet<string> {
146
166
  }
147
167