@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/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.203 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.203.
31
+ You can read what changed in version 0.0.204 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.204.
package/index.d.ts CHANGED
@@ -219,10 +219,29 @@ interface FontFaceSetLoadEventInit extends EventInit {
219
219
  fontfaces?: FontFace[];
220
220
  }
221
221
 
222
+ interface GPUObjectDescriptorBase {
223
+ label?: string;
224
+ }
225
+
222
226
  interface GPUPipelineErrorInit {
223
227
  reason: GPUPipelineErrorReason;
224
228
  }
225
229
 
230
+ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
231
+ arrayLayerCount?: GPUIntegerCoordinate;
232
+ aspect?: GPUTextureAspect;
233
+ baseArrayLayer?: GPUIntegerCoordinate;
234
+ baseMipLevel?: GPUIntegerCoordinate;
235
+ dimension?: GPUTextureViewDimension;
236
+ format?: GPUTextureFormat;
237
+ mipLevelCount?: GPUIntegerCoordinate;
238
+ usage?: GPUTextureUsageFlags;
239
+ }
240
+
241
+ interface GPUUncapturedErrorEventInit extends EventInit {
242
+ error: GPUError;
243
+ }
244
+
226
245
  interface GetNotificationOptions {
227
246
  tag?: string;
228
247
  }
@@ -3864,6 +3883,88 @@ declare var FormData: {
3864
3883
  new(): FormData;
3865
3884
  };
3866
3885
 
3886
+ /**
3887
+ * 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.
3888
+ * Available only in secure contexts.
3889
+ *
3890
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
3891
+ */
3892
+ interface GPUBindGroup extends GPUObjectBase {
3893
+ }
3894
+
3895
+ declare var GPUBindGroup: {
3896
+ prototype: GPUBindGroup;
3897
+ new(): GPUBindGroup;
3898
+ };
3899
+
3900
+ /**
3901
+ * 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.
3902
+ * Available only in secure contexts.
3903
+ *
3904
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
3905
+ */
3906
+ interface GPUBindGroupLayout extends GPUObjectBase {
3907
+ }
3908
+
3909
+ declare var GPUBindGroupLayout: {
3910
+ prototype: GPUBindGroupLayout;
3911
+ new(): GPUBindGroupLayout;
3912
+ };
3913
+
3914
+ /**
3915
+ * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
3916
+ * Available only in secure contexts.
3917
+ *
3918
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
3919
+ */
3920
+ interface GPUCommandBuffer extends GPUObjectBase {
3921
+ }
3922
+
3923
+ declare var GPUCommandBuffer: {
3924
+ prototype: GPUCommandBuffer;
3925
+ new(): GPUCommandBuffer;
3926
+ };
3927
+
3928
+ /**
3929
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
3930
+ * Available only in secure contexts.
3931
+ *
3932
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
3933
+ */
3934
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
3935
+ }
3936
+
3937
+ declare var GPUComputePipeline: {
3938
+ prototype: GPUComputePipeline;
3939
+ new(): GPUComputePipeline;
3940
+ };
3941
+
3942
+ /**
3943
+ * 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.
3944
+ * Available only in secure contexts.
3945
+ *
3946
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
3947
+ */
3948
+ interface GPUDeviceLostInfo {
3949
+ /**
3950
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
3951
+ *
3952
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
3953
+ */
3954
+ readonly message: string;
3955
+ /**
3956
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
3957
+ *
3958
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
3959
+ */
3960
+ readonly reason: GPUDeviceLostReason;
3961
+ }
3962
+
3963
+ declare var GPUDeviceLostInfo: {
3964
+ prototype: GPUDeviceLostInfo;
3965
+ new(): GPUDeviceLostInfo;
3966
+ };
3967
+
3867
3968
  /**
3868
3969
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
3869
3970
  * Available only in secure contexts.
@@ -3884,6 +3985,58 @@ declare var GPUError: {
3884
3985
  new(): GPUError;
3885
3986
  };
3886
3987
 
3988
+ /**
3989
+ * 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.
3990
+ * Available only in secure contexts.
3991
+ *
3992
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
3993
+ */
3994
+ interface GPUExternalTexture extends GPUObjectBase {
3995
+ }
3996
+
3997
+ declare var GPUExternalTexture: {
3998
+ prototype: GPUExternalTexture;
3999
+ new(): GPUExternalTexture;
4000
+ };
4001
+
4002
+ /**
4003
+ * 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.
4004
+ * Available only in secure contexts.
4005
+ *
4006
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
4007
+ */
4008
+ interface GPUInternalError extends GPUError {
4009
+ }
4010
+
4011
+ declare var GPUInternalError: {
4012
+ prototype: GPUInternalError;
4013
+ new(message: string): GPUInternalError;
4014
+ };
4015
+
4016
+ interface GPUObjectBase {
4017
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
4018
+ label: string;
4019
+ }
4020
+
4021
+ /**
4022
+ * 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.
4023
+ * Available only in secure contexts.
4024
+ *
4025
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
4026
+ */
4027
+ interface GPUOutOfMemoryError extends GPUError {
4028
+ }
4029
+
4030
+ declare var GPUOutOfMemoryError: {
4031
+ prototype: GPUOutOfMemoryError;
4032
+ new(message: string): GPUOutOfMemoryError;
4033
+ };
4034
+
4035
+ interface GPUPipelineBase {
4036
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
4037
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
4038
+ }
4039
+
3887
4040
  /**
3888
4041
  * 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.
3889
4042
  * Available only in secure contexts.
@@ -3904,6 +4057,275 @@ declare var GPUPipelineError: {
3904
4057
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
3905
4058
  };
3906
4059
 
4060
+ /**
4061
+ * 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.
4062
+ * Available only in secure contexts.
4063
+ *
4064
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
4065
+ */
4066
+ interface GPUPipelineLayout extends GPUObjectBase {
4067
+ }
4068
+
4069
+ declare var GPUPipelineLayout: {
4070
+ prototype: GPUPipelineLayout;
4071
+ new(): GPUPipelineLayout;
4072
+ };
4073
+
4074
+ /**
4075
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4076
+ * Available only in secure contexts.
4077
+ *
4078
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
4079
+ */
4080
+ interface GPURenderBundle extends GPUObjectBase {
4081
+ }
4082
+
4083
+ declare var GPURenderBundle: {
4084
+ prototype: GPURenderBundle;
4085
+ new(): GPURenderBundle;
4086
+ };
4087
+
4088
+ /**
4089
+ * 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.
4090
+ * Available only in secure contexts.
4091
+ *
4092
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
4093
+ */
4094
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
4095
+ }
4096
+
4097
+ declare var GPURenderPipeline: {
4098
+ prototype: GPURenderPipeline;
4099
+ new(): GPURenderPipeline;
4100
+ };
4101
+
4102
+ /**
4103
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
4104
+ * Available only in secure contexts.
4105
+ *
4106
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
4107
+ */
4108
+ interface GPUSampler extends GPUObjectBase {
4109
+ }
4110
+
4111
+ declare var GPUSampler: {
4112
+ prototype: GPUSampler;
4113
+ new(): GPUSampler;
4114
+ };
4115
+
4116
+ /**
4117
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
4118
+ * Available only in secure contexts.
4119
+ *
4120
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
4121
+ */
4122
+ interface GPUSupportedFeatures {
4123
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
4124
+ }
4125
+
4126
+ declare var GPUSupportedFeatures: {
4127
+ prototype: GPUSupportedFeatures;
4128
+ new(): GPUSupportedFeatures;
4129
+ };
4130
+
4131
+ /**
4132
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
4133
+ * Available only in secure contexts.
4134
+ *
4135
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
4136
+ */
4137
+ interface GPUSupportedLimits {
4138
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4139
+ readonly maxBindGroups: number;
4140
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4141
+ readonly maxBindGroupsPlusVertexBuffers: number;
4142
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4143
+ readonly maxBindingsPerBindGroup: number;
4144
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4145
+ readonly maxBufferSize: number;
4146
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4147
+ readonly maxColorAttachmentBytesPerSample: number;
4148
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4149
+ readonly maxColorAttachments: number;
4150
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4151
+ readonly maxComputeInvocationsPerWorkgroup: number;
4152
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4153
+ readonly maxComputeWorkgroupSizeX: number;
4154
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4155
+ readonly maxComputeWorkgroupSizeY: number;
4156
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4157
+ readonly maxComputeWorkgroupSizeZ: number;
4158
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4159
+ readonly maxComputeWorkgroupStorageSize: number;
4160
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4161
+ readonly maxComputeWorkgroupsPerDimension: number;
4162
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4163
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
4164
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4165
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
4166
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4167
+ readonly maxInterStageShaderVariables: number;
4168
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4169
+ readonly maxSampledTexturesPerShaderStage: number;
4170
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4171
+ readonly maxSamplersPerShaderStage: number;
4172
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4173
+ readonly maxStorageBufferBindingSize: number;
4174
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4175
+ readonly maxStorageBuffersPerShaderStage: number;
4176
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4177
+ readonly maxStorageTexturesPerShaderStage: number;
4178
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4179
+ readonly maxTextureArrayLayers: number;
4180
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4181
+ readonly maxTextureDimension1D: number;
4182
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4183
+ readonly maxTextureDimension2D: number;
4184
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4185
+ readonly maxTextureDimension3D: number;
4186
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4187
+ readonly maxUniformBufferBindingSize: number;
4188
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4189
+ readonly maxUniformBuffersPerShaderStage: number;
4190
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4191
+ readonly maxVertexAttributes: number;
4192
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4193
+ readonly maxVertexBufferArrayStride: number;
4194
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4195
+ readonly maxVertexBuffers: number;
4196
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4197
+ readonly minStorageBufferOffsetAlignment: number;
4198
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4199
+ readonly minUniformBufferOffsetAlignment: number;
4200
+ }
4201
+
4202
+ declare var GPUSupportedLimits: {
4203
+ prototype: GPUSupportedLimits;
4204
+ new(): GPUSupportedLimits;
4205
+ };
4206
+
4207
+ /**
4208
+ * 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.
4209
+ * Available only in secure contexts.
4210
+ *
4211
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
4212
+ */
4213
+ interface GPUTexture extends GPUObjectBase {
4214
+ /**
4215
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
4216
+ *
4217
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
4218
+ */
4219
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
4220
+ /**
4221
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
4222
+ *
4223
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
4224
+ */
4225
+ readonly dimension: GPUTextureDimension;
4226
+ /**
4227
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
4228
+ *
4229
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
4230
+ */
4231
+ readonly format: GPUTextureFormat;
4232
+ /**
4233
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
4234
+ *
4235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
4236
+ */
4237
+ readonly height: GPUIntegerCoordinateOut;
4238
+ /**
4239
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
4240
+ *
4241
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
4242
+ */
4243
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
4244
+ /**
4245
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
4246
+ *
4247
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
4248
+ */
4249
+ readonly sampleCount: GPUSize32Out;
4250
+ /**
4251
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
4252
+ *
4253
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
4254
+ */
4255
+ readonly usage: GPUFlagsConstant;
4256
+ /**
4257
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
4258
+ *
4259
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
4260
+ */
4261
+ readonly width: GPUIntegerCoordinateOut;
4262
+ /**
4263
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
4264
+ *
4265
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
4266
+ */
4267
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
4268
+ /**
4269
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
4270
+ *
4271
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
4272
+ */
4273
+ destroy(): void;
4274
+ }
4275
+
4276
+ declare var GPUTexture: {
4277
+ prototype: GPUTexture;
4278
+ new(): GPUTexture;
4279
+ };
4280
+
4281
+ /**
4282
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
4283
+ * Available only in secure contexts.
4284
+ *
4285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
4286
+ */
4287
+ interface GPUTextureView extends GPUObjectBase {
4288
+ }
4289
+
4290
+ declare var GPUTextureView: {
4291
+ prototype: GPUTextureView;
4292
+ new(): GPUTextureView;
4293
+ };
4294
+
4295
+ /**
4296
+ * 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.
4297
+ * Available only in secure contexts.
4298
+ *
4299
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
4300
+ */
4301
+ interface GPUUncapturedErrorEvent extends Event {
4302
+ /**
4303
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
4304
+ *
4305
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
4306
+ */
4307
+ readonly error: GPUError;
4308
+ }
4309
+
4310
+ declare var GPUUncapturedErrorEvent: {
4311
+ prototype: GPUUncapturedErrorEvent;
4312
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
4313
+ };
4314
+
4315
+ /**
4316
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
4317
+ * Available only in secure contexts.
4318
+ *
4319
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
4320
+ */
4321
+ interface GPUValidationError extends GPUError {
4322
+ }
4323
+
4324
+ declare var GPUValidationError: {
4325
+ prototype: GPUValidationError;
4326
+ new(message: string): GPUValidationError;
4327
+ };
4328
+
3907
4329
  interface GenericTransformStream {
3908
4330
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
3909
4331
  readonly readable: ReadableStream;
@@ -7778,6 +8200,21 @@ interface WEBGL_multi_draw {
7778
8200
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
7779
8201
  }
7780
8202
 
8203
+ /**
8204
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
8205
+ * Available only in secure contexts.
8206
+ *
8207
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
8208
+ */
8209
+ interface WGSLLanguageFeatures {
8210
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
8211
+ }
8212
+
8213
+ declare var WGSLLanguageFeatures: {
8214
+ prototype: WGSLLanguageFeatures;
8215
+ new(): WGSLLanguageFeatures;
8216
+ };
8217
+
7781
8218
  /**
7782
8219
  * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
7783
8220
  *
@@ -11445,6 +11882,11 @@ type GLsizei = number;
11445
11882
  type GLsizeiptr = number;
11446
11883
  type GLuint = number;
11447
11884
  type GLuint64 = number;
11885
+ type GPUFlagsConstant = number;
11886
+ type GPUIntegerCoordinate = number;
11887
+ type GPUIntegerCoordinateOut = number;
11888
+ type GPUSize32Out = number;
11889
+ type GPUTextureUsageFlags = number;
11448
11890
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
11449
11891
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
11450
11892
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
@@ -11489,7 +11931,12 @@ type FileSystemHandleKind = "directory" | "file";
11489
11931
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
11490
11932
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
11491
11933
  type FontFaceSetLoadStatus = "loaded" | "loading";
11934
+ type GPUDeviceLostReason = "destroyed" | "unknown";
11492
11935
  type GPUPipelineErrorReason = "internal" | "validation";
11936
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
11937
+ type GPUTextureDimension = "1d" | "2d" | "3d";
11938
+ 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";
11939
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
11493
11940
  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";
11494
11941
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
11495
11942
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
@@ -11607,6 +12054,9 @@ interface FormData {
11607
12054
  values(): FormDataIterator<FormDataEntryValue>;
11608
12055
  }
11609
12056
 
12057
+ interface GPUSupportedFeatures extends ReadonlySet<string> {
12058
+ }
12059
+
11610
12060
  interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
11611
12061
  [Symbol.iterator](): HeadersIterator<T>;
11612
12062
  }
@@ -11737,6 +12187,9 @@ interface WEBGL_multi_draw {
11737
12187
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
11738
12188
  }
11739
12189
 
12190
+ interface WGSLLanguageFeatures extends ReadonlySet<string> {
12191
+ }
12192
+
11740
12193
  interface WebGL2RenderingContextBase {
11741
12194
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
11742
12195
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.203",
3
+ "version": "0.0.204",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],