@types/sharedworker 0.0.203 → 0.0.204

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/ts5.6/index.d.ts CHANGED
@@ -216,10 +216,29 @@ interface FontFaceSetLoadEventInit extends EventInit {
216
216
  fontfaces?: FontFace[];
217
217
  }
218
218
 
219
+ interface GPUObjectDescriptorBase {
220
+ label?: string;
221
+ }
222
+
219
223
  interface GPUPipelineErrorInit {
220
224
  reason: GPUPipelineErrorReason;
221
225
  }
222
226
 
227
+ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
228
+ arrayLayerCount?: GPUIntegerCoordinate;
229
+ aspect?: GPUTextureAspect;
230
+ baseArrayLayer?: GPUIntegerCoordinate;
231
+ baseMipLevel?: GPUIntegerCoordinate;
232
+ dimension?: GPUTextureViewDimension;
233
+ format?: GPUTextureFormat;
234
+ mipLevelCount?: GPUIntegerCoordinate;
235
+ usage?: GPUTextureUsageFlags;
236
+ }
237
+
238
+ interface GPUUncapturedErrorEventInit extends EventInit {
239
+ error: GPUError;
240
+ }
241
+
223
242
  interface GetNotificationOptions {
224
243
  tag?: string;
225
244
  }
@@ -3861,6 +3880,88 @@ declare var FormData: {
3861
3880
  new(): FormData;
3862
3881
  };
3863
3882
 
3883
+ /**
3884
+ * 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.
3885
+ * Available only in secure contexts.
3886
+ *
3887
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
3888
+ */
3889
+ interface GPUBindGroup extends GPUObjectBase {
3890
+ }
3891
+
3892
+ declare var GPUBindGroup: {
3893
+ prototype: GPUBindGroup;
3894
+ new(): GPUBindGroup;
3895
+ };
3896
+
3897
+ /**
3898
+ * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups.
3899
+ * Available only in secure contexts.
3900
+ *
3901
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
3902
+ */
3903
+ interface GPUBindGroupLayout extends GPUObjectBase {
3904
+ }
3905
+
3906
+ declare var GPUBindGroupLayout: {
3907
+ prototype: GPUBindGroupLayout;
3908
+ new(): GPUBindGroupLayout;
3909
+ };
3910
+
3911
+ /**
3912
+ * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
3913
+ * Available only in secure contexts.
3914
+ *
3915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
3916
+ */
3917
+ interface GPUCommandBuffer extends GPUObjectBase {
3918
+ }
3919
+
3920
+ declare var GPUCommandBuffer: {
3921
+ prototype: GPUCommandBuffer;
3922
+ new(): GPUCommandBuffer;
3923
+ };
3924
+
3925
+ /**
3926
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
3927
+ * Available only in secure contexts.
3928
+ *
3929
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
3930
+ */
3931
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
3932
+ }
3933
+
3934
+ declare var GPUComputePipeline: {
3935
+ prototype: GPUComputePipeline;
3936
+ new(): GPUComputePipeline;
3937
+ };
3938
+
3939
+ /**
3940
+ * 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.
3941
+ * Available only in secure contexts.
3942
+ *
3943
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
3944
+ */
3945
+ interface GPUDeviceLostInfo {
3946
+ /**
3947
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
3948
+ *
3949
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
3950
+ */
3951
+ readonly message: string;
3952
+ /**
3953
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
3954
+ *
3955
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
3956
+ */
3957
+ readonly reason: GPUDeviceLostReason;
3958
+ }
3959
+
3960
+ declare var GPUDeviceLostInfo: {
3961
+ prototype: GPUDeviceLostInfo;
3962
+ new(): GPUDeviceLostInfo;
3963
+ };
3964
+
3864
3965
  /**
3865
3966
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
3866
3967
  * Available only in secure contexts.
@@ -3881,6 +3982,58 @@ declare var GPUError: {
3881
3982
  new(): GPUError;
3882
3983
  };
3883
3984
 
3985
+ /**
3986
+ * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations.
3987
+ * Available only in secure contexts.
3988
+ *
3989
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
3990
+ */
3991
+ interface GPUExternalTexture extends GPUObjectBase {
3992
+ }
3993
+
3994
+ declare var GPUExternalTexture: {
3995
+ prototype: GPUExternalTexture;
3996
+ new(): GPUExternalTexture;
3997
+ };
3998
+
3999
+ /**
4000
+ * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied.
4001
+ * Available only in secure contexts.
4002
+ *
4003
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
4004
+ */
4005
+ interface GPUInternalError extends GPUError {
4006
+ }
4007
+
4008
+ declare var GPUInternalError: {
4009
+ prototype: GPUInternalError;
4010
+ new(message: string): GPUInternalError;
4011
+ };
4012
+
4013
+ interface GPUObjectBase {
4014
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
4015
+ label: string;
4016
+ }
4017
+
4018
+ /**
4019
+ * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation.
4020
+ * Available only in secure contexts.
4021
+ *
4022
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
4023
+ */
4024
+ interface GPUOutOfMemoryError extends GPUError {
4025
+ }
4026
+
4027
+ declare var GPUOutOfMemoryError: {
4028
+ prototype: GPUOutOfMemoryError;
4029
+ new(message: string): GPUOutOfMemoryError;
4030
+ };
4031
+
4032
+ interface GPUPipelineBase {
4033
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
4034
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
4035
+ }
4036
+
3884
4037
  /**
3885
4038
  * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects.
3886
4039
  * Available only in secure contexts.
@@ -3901,6 +4054,275 @@ declare var GPUPipelineError: {
3901
4054
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
3902
4055
  };
3903
4056
 
4057
+ /**
4058
+ * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
4059
+ * Available only in secure contexts.
4060
+ *
4061
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
4062
+ */
4063
+ interface GPUPipelineLayout extends GPUObjectBase {
4064
+ }
4065
+
4066
+ declare var GPUPipelineLayout: {
4067
+ prototype: GPUPipelineLayout;
4068
+ new(): GPUPipelineLayout;
4069
+ };
4070
+
4071
+ /**
4072
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4073
+ * Available only in secure contexts.
4074
+ *
4075
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
4076
+ */
4077
+ interface GPURenderBundle extends GPUObjectBase {
4078
+ }
4079
+
4080
+ declare var GPURenderBundle: {
4081
+ prototype: GPURenderBundle;
4082
+ new(): GPURenderBundle;
4083
+ };
4084
+
4085
+ /**
4086
+ * 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.
4087
+ * Available only in secure contexts.
4088
+ *
4089
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
4090
+ */
4091
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
4092
+ }
4093
+
4094
+ declare var GPURenderPipeline: {
4095
+ prototype: GPURenderPipeline;
4096
+ new(): GPURenderPipeline;
4097
+ };
4098
+
4099
+ /**
4100
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
4101
+ * Available only in secure contexts.
4102
+ *
4103
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
4104
+ */
4105
+ interface GPUSampler extends GPUObjectBase {
4106
+ }
4107
+
4108
+ declare var GPUSampler: {
4109
+ prototype: GPUSampler;
4110
+ new(): GPUSampler;
4111
+ };
4112
+
4113
+ /**
4114
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
4115
+ * Available only in secure contexts.
4116
+ *
4117
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
4118
+ */
4119
+ interface GPUSupportedFeatures {
4120
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
4121
+ }
4122
+
4123
+ declare var GPUSupportedFeatures: {
4124
+ prototype: GPUSupportedFeatures;
4125
+ new(): GPUSupportedFeatures;
4126
+ };
4127
+
4128
+ /**
4129
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
4130
+ * Available only in secure contexts.
4131
+ *
4132
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
4133
+ */
4134
+ interface GPUSupportedLimits {
4135
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4136
+ readonly maxBindGroups: number;
4137
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4138
+ readonly maxBindGroupsPlusVertexBuffers: number;
4139
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4140
+ readonly maxBindingsPerBindGroup: number;
4141
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4142
+ readonly maxBufferSize: number;
4143
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4144
+ readonly maxColorAttachmentBytesPerSample: number;
4145
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4146
+ readonly maxColorAttachments: number;
4147
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4148
+ readonly maxComputeInvocationsPerWorkgroup: number;
4149
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4150
+ readonly maxComputeWorkgroupSizeX: number;
4151
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4152
+ readonly maxComputeWorkgroupSizeY: number;
4153
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4154
+ readonly maxComputeWorkgroupSizeZ: number;
4155
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4156
+ readonly maxComputeWorkgroupStorageSize: number;
4157
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4158
+ readonly maxComputeWorkgroupsPerDimension: number;
4159
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4160
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
4161
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4162
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
4163
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4164
+ readonly maxInterStageShaderVariables: number;
4165
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4166
+ readonly maxSampledTexturesPerShaderStage: number;
4167
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4168
+ readonly maxSamplersPerShaderStage: number;
4169
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4170
+ readonly maxStorageBufferBindingSize: number;
4171
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4172
+ readonly maxStorageBuffersPerShaderStage: number;
4173
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4174
+ readonly maxStorageTexturesPerShaderStage: number;
4175
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4176
+ readonly maxTextureArrayLayers: number;
4177
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4178
+ readonly maxTextureDimension1D: number;
4179
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4180
+ readonly maxTextureDimension2D: number;
4181
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4182
+ readonly maxTextureDimension3D: number;
4183
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4184
+ readonly maxUniformBufferBindingSize: number;
4185
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4186
+ readonly maxUniformBuffersPerShaderStage: number;
4187
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4188
+ readonly maxVertexAttributes: number;
4189
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4190
+ readonly maxVertexBufferArrayStride: number;
4191
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4192
+ readonly maxVertexBuffers: number;
4193
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4194
+ readonly minStorageBufferOffsetAlignment: number;
4195
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4196
+ readonly minUniformBufferOffsetAlignment: number;
4197
+ }
4198
+
4199
+ declare var GPUSupportedLimits: {
4200
+ prototype: GPUSupportedLimits;
4201
+ new(): GPUSupportedLimits;
4202
+ };
4203
+
4204
+ /**
4205
+ * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
4206
+ * Available only in secure contexts.
4207
+ *
4208
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
4209
+ */
4210
+ interface GPUTexture extends GPUObjectBase {
4211
+ /**
4212
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
4213
+ *
4214
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
4215
+ */
4216
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
4217
+ /**
4218
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
4219
+ *
4220
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
4221
+ */
4222
+ readonly dimension: GPUTextureDimension;
4223
+ /**
4224
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
4225
+ *
4226
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
4227
+ */
4228
+ readonly format: GPUTextureFormat;
4229
+ /**
4230
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
4231
+ *
4232
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
4233
+ */
4234
+ readonly height: GPUIntegerCoordinateOut;
4235
+ /**
4236
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
4237
+ *
4238
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
4239
+ */
4240
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
4241
+ /**
4242
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
4243
+ *
4244
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
4245
+ */
4246
+ readonly sampleCount: GPUSize32Out;
4247
+ /**
4248
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
4249
+ *
4250
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
4251
+ */
4252
+ readonly usage: GPUFlagsConstant;
4253
+ /**
4254
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
4255
+ *
4256
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
4257
+ */
4258
+ readonly width: GPUIntegerCoordinateOut;
4259
+ /**
4260
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
4261
+ *
4262
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
4263
+ */
4264
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
4265
+ /**
4266
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
4267
+ *
4268
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
4269
+ */
4270
+ destroy(): void;
4271
+ }
4272
+
4273
+ declare var GPUTexture: {
4274
+ prototype: GPUTexture;
4275
+ new(): GPUTexture;
4276
+ };
4277
+
4278
+ /**
4279
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
4280
+ * Available only in secure contexts.
4281
+ *
4282
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
4283
+ */
4284
+ interface GPUTextureView extends GPUObjectBase {
4285
+ }
4286
+
4287
+ declare var GPUTextureView: {
4288
+ prototype: GPUTextureView;
4289
+ new(): GPUTextureView;
4290
+ };
4291
+
4292
+ /**
4293
+ * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors.
4294
+ * Available only in secure contexts.
4295
+ *
4296
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
4297
+ */
4298
+ interface GPUUncapturedErrorEvent extends Event {
4299
+ /**
4300
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
4301
+ *
4302
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
4303
+ */
4304
+ readonly error: GPUError;
4305
+ }
4306
+
4307
+ declare var GPUUncapturedErrorEvent: {
4308
+ prototype: GPUUncapturedErrorEvent;
4309
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
4310
+ };
4311
+
4312
+ /**
4313
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
4314
+ * Available only in secure contexts.
4315
+ *
4316
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
4317
+ */
4318
+ interface GPUValidationError extends GPUError {
4319
+ }
4320
+
4321
+ declare var GPUValidationError: {
4322
+ prototype: GPUValidationError;
4323
+ new(message: string): GPUValidationError;
4324
+ };
4325
+
3904
4326
  interface GenericTransformStream {
3905
4327
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
3906
4328
  readonly readable: ReadableStream;
@@ -7775,6 +8197,21 @@ interface WEBGL_multi_draw {
7775
8197
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
7776
8198
  }
7777
8199
 
8200
+ /**
8201
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
8202
+ * Available only in secure contexts.
8203
+ *
8204
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
8205
+ */
8206
+ interface WGSLLanguageFeatures {
8207
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
8208
+ }
8209
+
8210
+ declare var WGSLLanguageFeatures: {
8211
+ prototype: WGSLLanguageFeatures;
8212
+ new(): WGSLLanguageFeatures;
8213
+ };
8214
+
7778
8215
  /**
7779
8216
  * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
7780
8217
  *
@@ -11442,6 +11879,11 @@ type GLsizei = number;
11442
11879
  type GLsizeiptr = number;
11443
11880
  type GLuint = number;
11444
11881
  type GLuint64 = number;
11882
+ type GPUFlagsConstant = number;
11883
+ type GPUIntegerCoordinate = number;
11884
+ type GPUIntegerCoordinateOut = number;
11885
+ type GPUSize32Out = number;
11886
+ type GPUTextureUsageFlags = number;
11445
11887
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
11446
11888
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
11447
11889
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
@@ -11486,7 +11928,12 @@ type FileSystemHandleKind = "directory" | "file";
11486
11928
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
11487
11929
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
11488
11930
  type FontFaceSetLoadStatus = "loaded" | "loading";
11931
+ type GPUDeviceLostReason = "destroyed" | "unknown";
11489
11932
  type GPUPipelineErrorReason = "internal" | "validation";
11933
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
11934
+ type GPUTextureDimension = "1d" | "2d" | "3d";
11935
+ 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";
11936
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
11490
11937
  type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
11491
11938
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
11492
11939
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
@@ -67,6 +67,9 @@ interface FormData {
67
67
  values(): FormDataIterator<FormDataEntryValue>;
68
68
  }
69
69
 
70
+ interface GPUSupportedFeatures extends ReadonlySet<string> {
71
+ }
72
+
70
73
  interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
71
74
  [Symbol.iterator](): HeadersIterator<T>;
72
75
  }
@@ -197,6 +200,9 @@ interface WEBGL_multi_draw {
197
200
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
198
201
  }
199
202
 
203
+ interface WGSLLanguageFeatures extends ReadonlySet<string> {
204
+ }
205
+
200
206
  interface WebGL2RenderingContextBase {
201
207
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
202
208
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;