@types/sharedworker 0.0.206 → 0.0.208

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.206 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.206.
31
+ You can read what changed in version 0.0.208 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.208.
package/index.d.ts CHANGED
@@ -3911,6 +3911,12 @@ declare var GPUBindGroupLayout: {
3911
3911
  new(): GPUBindGroupLayout;
3912
3912
  };
3913
3913
 
3914
+ interface GPUBindingCommandsMixin {
3915
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
3916
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
3917
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
3918
+ }
3919
+
3914
3920
  /**
3915
3921
  * 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.
3916
3922
  * Available only in secure contexts.
@@ -4051,6 +4057,44 @@ declare var GPUCompilationMessage: {
4051
4057
  new(): GPUCompilationMessage;
4052
4058
  };
4053
4059
 
4060
+ /**
4061
+ * 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.
4062
+ * Available only in secure contexts.
4063
+ *
4064
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
4065
+ */
4066
+ interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
4067
+ /**
4068
+ * 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()).
4069
+ *
4070
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
4071
+ */
4072
+ dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
4073
+ /**
4074
+ * 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()).
4075
+ *
4076
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
4077
+ */
4078
+ dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4079
+ /**
4080
+ * The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
4081
+ *
4082
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
4083
+ */
4084
+ end(): void;
4085
+ /**
4086
+ * The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
4087
+ *
4088
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
4089
+ */
4090
+ setPipeline(pipeline: GPUComputePipeline): void;
4091
+ }
4092
+
4093
+ declare var GPUComputePassEncoder: {
4094
+ prototype: GPUComputePassEncoder;
4095
+ new(): GPUComputePassEncoder;
4096
+ };
4097
+
4054
4098
  /**
4055
4099
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
4056
4100
  * Available only in secure contexts.
@@ -4065,6 +4109,15 @@ declare var GPUComputePipeline: {
4065
4109
  new(): GPUComputePipeline;
4066
4110
  };
4067
4111
 
4112
+ interface GPUDebugCommandsMixin {
4113
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
4114
+ insertDebugMarker(markerLabel: string): void;
4115
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
4116
+ popDebugGroup(): void;
4117
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
4118
+ pushDebugGroup(groupLabel: string): void;
4119
+ }
4120
+
4068
4121
  /**
4069
4122
  * 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.
4070
4123
  * Available only in secure contexts.
@@ -4197,6 +4250,38 @@ declare var GPUPipelineLayout: {
4197
4250
  new(): GPUPipelineLayout;
4198
4251
  };
4199
4252
 
4253
+ /**
4254
+ * The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
4255
+ * Available only in secure contexts.
4256
+ *
4257
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
4258
+ */
4259
+ interface GPUQuerySet extends GPUObjectBase {
4260
+ /**
4261
+ * The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
4262
+ *
4263
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
4264
+ */
4265
+ readonly count: GPUSize32Out;
4266
+ /**
4267
+ * The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
4268
+ *
4269
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
4270
+ */
4271
+ readonly type: GPUQueryType;
4272
+ /**
4273
+ * The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
4274
+ *
4275
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
4276
+ */
4277
+ destroy(): void;
4278
+ }
4279
+
4280
+ declare var GPUQuerySet: {
4281
+ prototype: GPUQuerySet;
4282
+ new(): GPUQuerySet;
4283
+ };
4284
+
4200
4285
  /**
4201
4286
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4202
4287
  * Available only in secure contexts.
@@ -6332,7 +6417,7 @@ interface PerformanceServerTiming {
6332
6417
  */
6333
6418
  readonly description: string;
6334
6419
  /**
6335
- * The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value 0.0.
6420
+ * The **`duration`** read-only property returns a double that contains the server-specified metric duration (usually in milliseconds), or the value 0.0.
6336
6421
  *
6337
6422
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
6338
6423
  */
@@ -12030,10 +12115,13 @@ type GLsizei = number;
12030
12115
  type GLsizeiptr = number;
12031
12116
  type GLuint = number;
12032
12117
  type GLuint64 = number;
12118
+ type GPUBufferDynamicOffset = number;
12033
12119
  type GPUFlagsConstant = number;
12120
+ type GPUIndex32 = number;
12034
12121
  type GPUIntegerCoordinate = number;
12035
12122
  type GPUIntegerCoordinateOut = number;
12036
12123
  type GPUMapModeFlags = number;
12124
+ type GPUSize32 = number;
12037
12125
  type GPUSize32Out = number;
12038
12126
  type GPUSize64 = number;
12039
12127
  type GPUSize64Out = number;
@@ -12086,6 +12174,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12086
12174
  type GPUCompilationMessageType = "error" | "info" | "warning";
12087
12175
  type GPUDeviceLostReason = "destroyed" | "unknown";
12088
12176
  type GPUPipelineErrorReason = "internal" | "validation";
12177
+ type GPUQueryType = "occlusion" | "timestamp";
12089
12178
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12090
12179
  type GPUTextureDimension = "1d" | "2d" | "3d";
12091
12180
  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";
@@ -12207,6 +12296,11 @@ interface FormData {
12207
12296
  values(): FormDataIterator<FormDataEntryValue>;
12208
12297
  }
12209
12298
 
12299
+ interface GPUBindingCommandsMixin {
12300
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
12301
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
12302
+ }
12303
+
12210
12304
  interface GPUSupportedFeatures extends ReadonlySet<string> {
12211
12305
  }
12212
12306
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.206",
3
+ "version": "0.0.208",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -3908,6 +3908,12 @@ declare var GPUBindGroupLayout: {
3908
3908
  new(): GPUBindGroupLayout;
3909
3909
  };
3910
3910
 
3911
+ interface GPUBindingCommandsMixin {
3912
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
3913
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
3914
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
3915
+ }
3916
+
3911
3917
  /**
3912
3918
  * 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.
3913
3919
  * Available only in secure contexts.
@@ -4048,6 +4054,44 @@ declare var GPUCompilationMessage: {
4048
4054
  new(): GPUCompilationMessage;
4049
4055
  };
4050
4056
 
4057
+ /**
4058
+ * 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.
4059
+ * Available only in secure contexts.
4060
+ *
4061
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
4062
+ */
4063
+ interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
4064
+ /**
4065
+ * 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()).
4066
+ *
4067
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
4068
+ */
4069
+ dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
4070
+ /**
4071
+ * 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()).
4072
+ *
4073
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
4074
+ */
4075
+ dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4076
+ /**
4077
+ * The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
4078
+ *
4079
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
4080
+ */
4081
+ end(): void;
4082
+ /**
4083
+ * The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
4084
+ *
4085
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
4086
+ */
4087
+ setPipeline(pipeline: GPUComputePipeline): void;
4088
+ }
4089
+
4090
+ declare var GPUComputePassEncoder: {
4091
+ prototype: GPUComputePassEncoder;
4092
+ new(): GPUComputePassEncoder;
4093
+ };
4094
+
4051
4095
  /**
4052
4096
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
4053
4097
  * Available only in secure contexts.
@@ -4062,6 +4106,15 @@ declare var GPUComputePipeline: {
4062
4106
  new(): GPUComputePipeline;
4063
4107
  };
4064
4108
 
4109
+ interface GPUDebugCommandsMixin {
4110
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
4111
+ insertDebugMarker(markerLabel: string): void;
4112
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
4113
+ popDebugGroup(): void;
4114
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
4115
+ pushDebugGroup(groupLabel: string): void;
4116
+ }
4117
+
4065
4118
  /**
4066
4119
  * 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.
4067
4120
  * Available only in secure contexts.
@@ -4194,6 +4247,38 @@ declare var GPUPipelineLayout: {
4194
4247
  new(): GPUPipelineLayout;
4195
4248
  };
4196
4249
 
4250
+ /**
4251
+ * The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
4252
+ * Available only in secure contexts.
4253
+ *
4254
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
4255
+ */
4256
+ interface GPUQuerySet extends GPUObjectBase {
4257
+ /**
4258
+ * The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
4259
+ *
4260
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
4261
+ */
4262
+ readonly count: GPUSize32Out;
4263
+ /**
4264
+ * The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
4265
+ *
4266
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
4267
+ */
4268
+ readonly type: GPUQueryType;
4269
+ /**
4270
+ * The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
4271
+ *
4272
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
4273
+ */
4274
+ destroy(): void;
4275
+ }
4276
+
4277
+ declare var GPUQuerySet: {
4278
+ prototype: GPUQuerySet;
4279
+ new(): GPUQuerySet;
4280
+ };
4281
+
4197
4282
  /**
4198
4283
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4199
4284
  * Available only in secure contexts.
@@ -6329,7 +6414,7 @@ interface PerformanceServerTiming {
6329
6414
  */
6330
6415
  readonly description: string;
6331
6416
  /**
6332
- * The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value 0.0.
6417
+ * The **`duration`** read-only property returns a double that contains the server-specified metric duration (usually in milliseconds), or the value 0.0.
6333
6418
  *
6334
6419
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
6335
6420
  */
@@ -12027,10 +12112,13 @@ type GLsizei = number;
12027
12112
  type GLsizeiptr = number;
12028
12113
  type GLuint = number;
12029
12114
  type GLuint64 = number;
12115
+ type GPUBufferDynamicOffset = number;
12030
12116
  type GPUFlagsConstant = number;
12117
+ type GPUIndex32 = number;
12031
12118
  type GPUIntegerCoordinate = number;
12032
12119
  type GPUIntegerCoordinateOut = number;
12033
12120
  type GPUMapModeFlags = number;
12121
+ type GPUSize32 = number;
12034
12122
  type GPUSize32Out = number;
12035
12123
  type GPUSize64 = number;
12036
12124
  type GPUSize64Out = number;
@@ -12083,6 +12171,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12083
12171
  type GPUCompilationMessageType = "error" | "info" | "warning";
12084
12172
  type GPUDeviceLostReason = "destroyed" | "unknown";
12085
12173
  type GPUPipelineErrorReason = "internal" | "validation";
12174
+ type GPUQueryType = "occlusion" | "timestamp";
12086
12175
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12087
12176
  type GPUTextureDimension = "1d" | "2d" | "3d";
12088
12177
  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";
@@ -63,6 +63,11 @@ interface FormData {
63
63
  values(): IterableIterator<FormDataEntryValue>;
64
64
  }
65
65
 
66
+ interface GPUBindingCommandsMixin {
67
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
68
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
69
+ }
70
+
66
71
  interface GPUSupportedFeatures extends ReadonlySet<string> {
67
72
  }
68
73
 
package/ts5.6/index.d.ts CHANGED
@@ -3908,6 +3908,12 @@ declare var GPUBindGroupLayout: {
3908
3908
  new(): GPUBindGroupLayout;
3909
3909
  };
3910
3910
 
3911
+ interface GPUBindingCommandsMixin {
3912
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
3913
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
3914
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
3915
+ }
3916
+
3911
3917
  /**
3912
3918
  * 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.
3913
3919
  * Available only in secure contexts.
@@ -4048,6 +4054,44 @@ declare var GPUCompilationMessage: {
4048
4054
  new(): GPUCompilationMessage;
4049
4055
  };
4050
4056
 
4057
+ /**
4058
+ * 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.
4059
+ * Available only in secure contexts.
4060
+ *
4061
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
4062
+ */
4063
+ interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
4064
+ /**
4065
+ * 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()).
4066
+ *
4067
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
4068
+ */
4069
+ dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
4070
+ /**
4071
+ * 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()).
4072
+ *
4073
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
4074
+ */
4075
+ dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4076
+ /**
4077
+ * The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
4078
+ *
4079
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
4080
+ */
4081
+ end(): void;
4082
+ /**
4083
+ * The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
4084
+ *
4085
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
4086
+ */
4087
+ setPipeline(pipeline: GPUComputePipeline): void;
4088
+ }
4089
+
4090
+ declare var GPUComputePassEncoder: {
4091
+ prototype: GPUComputePassEncoder;
4092
+ new(): GPUComputePassEncoder;
4093
+ };
4094
+
4051
4095
  /**
4052
4096
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
4053
4097
  * Available only in secure contexts.
@@ -4062,6 +4106,15 @@ declare var GPUComputePipeline: {
4062
4106
  new(): GPUComputePipeline;
4063
4107
  };
4064
4108
 
4109
+ interface GPUDebugCommandsMixin {
4110
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
4111
+ insertDebugMarker(markerLabel: string): void;
4112
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
4113
+ popDebugGroup(): void;
4114
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
4115
+ pushDebugGroup(groupLabel: string): void;
4116
+ }
4117
+
4065
4118
  /**
4066
4119
  * 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.
4067
4120
  * Available only in secure contexts.
@@ -4194,6 +4247,38 @@ declare var GPUPipelineLayout: {
4194
4247
  new(): GPUPipelineLayout;
4195
4248
  };
4196
4249
 
4250
+ /**
4251
+ * The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
4252
+ * Available only in secure contexts.
4253
+ *
4254
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
4255
+ */
4256
+ interface GPUQuerySet extends GPUObjectBase {
4257
+ /**
4258
+ * The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
4259
+ *
4260
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
4261
+ */
4262
+ readonly count: GPUSize32Out;
4263
+ /**
4264
+ * The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
4265
+ *
4266
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
4267
+ */
4268
+ readonly type: GPUQueryType;
4269
+ /**
4270
+ * The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
4271
+ *
4272
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
4273
+ */
4274
+ destroy(): void;
4275
+ }
4276
+
4277
+ declare var GPUQuerySet: {
4278
+ prototype: GPUQuerySet;
4279
+ new(): GPUQuerySet;
4280
+ };
4281
+
4197
4282
  /**
4198
4283
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4199
4284
  * Available only in secure contexts.
@@ -6329,7 +6414,7 @@ interface PerformanceServerTiming {
6329
6414
  */
6330
6415
  readonly description: string;
6331
6416
  /**
6332
- * The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value 0.0.
6417
+ * The **`duration`** read-only property returns a double that contains the server-specified metric duration (usually in milliseconds), or the value 0.0.
6333
6418
  *
6334
6419
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
6335
6420
  */
@@ -12027,10 +12112,13 @@ type GLsizei = number;
12027
12112
  type GLsizeiptr = number;
12028
12113
  type GLuint = number;
12029
12114
  type GLuint64 = number;
12115
+ type GPUBufferDynamicOffset = number;
12030
12116
  type GPUFlagsConstant = number;
12117
+ type GPUIndex32 = number;
12031
12118
  type GPUIntegerCoordinate = number;
12032
12119
  type GPUIntegerCoordinateOut = number;
12033
12120
  type GPUMapModeFlags = number;
12121
+ type GPUSize32 = number;
12034
12122
  type GPUSize32Out = number;
12035
12123
  type GPUSize64 = number;
12036
12124
  type GPUSize64Out = number;
@@ -12083,6 +12171,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12083
12171
  type GPUCompilationMessageType = "error" | "info" | "warning";
12084
12172
  type GPUDeviceLostReason = "destroyed" | "unknown";
12085
12173
  type GPUPipelineErrorReason = "internal" | "validation";
12174
+ type GPUQueryType = "occlusion" | "timestamp";
12086
12175
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12087
12176
  type GPUTextureDimension = "1d" | "2d" | "3d";
12088
12177
  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";
@@ -67,6 +67,11 @@ interface FormData {
67
67
  values(): FormDataIterator<FormDataEntryValue>;
68
68
  }
69
69
 
70
+ interface GPUBindingCommandsMixin {
71
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
72
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
73
+ }
74
+
70
75
  interface GPUSupportedFeatures extends ReadonlySet<string> {
71
76
  }
72
77
 
package/ts5.9/index.d.ts CHANGED
@@ -3908,6 +3908,12 @@ declare var GPUBindGroupLayout: {
3908
3908
  new(): GPUBindGroupLayout;
3909
3909
  };
3910
3910
 
3911
+ interface GPUBindingCommandsMixin {
3912
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
3913
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
3914
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
3915
+ }
3916
+
3911
3917
  /**
3912
3918
  * 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.
3913
3919
  * Available only in secure contexts.
@@ -4048,6 +4054,44 @@ declare var GPUCompilationMessage: {
4048
4054
  new(): GPUCompilationMessage;
4049
4055
  };
4050
4056
 
4057
+ /**
4058
+ * 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.
4059
+ * Available only in secure contexts.
4060
+ *
4061
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
4062
+ */
4063
+ interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
4064
+ /**
4065
+ * 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()).
4066
+ *
4067
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
4068
+ */
4069
+ dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
4070
+ /**
4071
+ * 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()).
4072
+ *
4073
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
4074
+ */
4075
+ dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4076
+ /**
4077
+ * The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
4078
+ *
4079
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
4080
+ */
4081
+ end(): void;
4082
+ /**
4083
+ * The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
4084
+ *
4085
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
4086
+ */
4087
+ setPipeline(pipeline: GPUComputePipeline): void;
4088
+ }
4089
+
4090
+ declare var GPUComputePassEncoder: {
4091
+ prototype: GPUComputePassEncoder;
4092
+ new(): GPUComputePassEncoder;
4093
+ };
4094
+
4051
4095
  /**
4052
4096
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
4053
4097
  * Available only in secure contexts.
@@ -4062,6 +4106,15 @@ declare var GPUComputePipeline: {
4062
4106
  new(): GPUComputePipeline;
4063
4107
  };
4064
4108
 
4109
+ interface GPUDebugCommandsMixin {
4110
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
4111
+ insertDebugMarker(markerLabel: string): void;
4112
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
4113
+ popDebugGroup(): void;
4114
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
4115
+ pushDebugGroup(groupLabel: string): void;
4116
+ }
4117
+
4065
4118
  /**
4066
4119
  * 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.
4067
4120
  * Available only in secure contexts.
@@ -4194,6 +4247,38 @@ declare var GPUPipelineLayout: {
4194
4247
  new(): GPUPipelineLayout;
4195
4248
  };
4196
4249
 
4250
+ /**
4251
+ * The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
4252
+ * Available only in secure contexts.
4253
+ *
4254
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
4255
+ */
4256
+ interface GPUQuerySet extends GPUObjectBase {
4257
+ /**
4258
+ * The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
4259
+ *
4260
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
4261
+ */
4262
+ readonly count: GPUSize32Out;
4263
+ /**
4264
+ * The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
4265
+ *
4266
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
4267
+ */
4268
+ readonly type: GPUQueryType;
4269
+ /**
4270
+ * The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
4271
+ *
4272
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
4273
+ */
4274
+ destroy(): void;
4275
+ }
4276
+
4277
+ declare var GPUQuerySet: {
4278
+ prototype: GPUQuerySet;
4279
+ new(): GPUQuerySet;
4280
+ };
4281
+
4197
4282
  /**
4198
4283
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4199
4284
  * Available only in secure contexts.
@@ -6329,7 +6414,7 @@ interface PerformanceServerTiming {
6329
6414
  */
6330
6415
  readonly description: string;
6331
6416
  /**
6332
- * The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value 0.0.
6417
+ * The **`duration`** read-only property returns a double that contains the server-specified metric duration (usually in milliseconds), or the value 0.0.
6333
6418
  *
6334
6419
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
6335
6420
  */
@@ -12027,10 +12112,13 @@ type GLsizei = number;
12027
12112
  type GLsizeiptr = number;
12028
12113
  type GLuint = number;
12029
12114
  type GLuint64 = number;
12115
+ type GPUBufferDynamicOffset = number;
12030
12116
  type GPUFlagsConstant = number;
12117
+ type GPUIndex32 = number;
12031
12118
  type GPUIntegerCoordinate = number;
12032
12119
  type GPUIntegerCoordinateOut = number;
12033
12120
  type GPUMapModeFlags = number;
12121
+ type GPUSize32 = number;
12034
12122
  type GPUSize32Out = number;
12035
12123
  type GPUSize64 = number;
12036
12124
  type GPUSize64Out = number;
@@ -12083,6 +12171,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12083
12171
  type GPUCompilationMessageType = "error" | "info" | "warning";
12084
12172
  type GPUDeviceLostReason = "destroyed" | "unknown";
12085
12173
  type GPUPipelineErrorReason = "internal" | "validation";
12174
+ type GPUQueryType = "occlusion" | "timestamp";
12086
12175
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12087
12176
  type GPUTextureDimension = "1d" | "2d" | "3d";
12088
12177
  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";
@@ -67,6 +67,11 @@ interface FormData {
67
67
  values(): FormDataIterator<FormDataEntryValue>;
68
68
  }
69
69
 
70
+ interface GPUBindingCommandsMixin {
71
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
72
+ setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
73
+ }
74
+
70
75
  interface GPUSupportedFeatures extends ReadonlySet<string> {
71
76
  }
72
77