@types/sharedworker 0.0.203 → 0.0.205

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.203",
3
+ "version": "0.0.205",
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
@@ -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,214 @@ 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 **`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
+ * Available only in secure contexts.
3914
+ *
3915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
3916
+ */
3917
+ interface GPUBuffer extends GPUObjectBase {
3918
+ /**
3919
+ * The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
3920
+ *
3921
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
3922
+ */
3923
+ readonly mapState: GPUBufferMapState;
3924
+ /**
3925
+ * The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
3926
+ *
3927
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
3928
+ */
3929
+ readonly size: GPUSize64Out;
3930
+ /**
3931
+ * The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
3932
+ *
3933
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
3934
+ */
3935
+ readonly usage: GPUFlagsConstant;
3936
+ /**
3937
+ * The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
3938
+ *
3939
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
3940
+ */
3941
+ destroy(): void;
3942
+ /**
3943
+ * The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
3944
+ *
3945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
3946
+ */
3947
+ getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
3948
+ /**
3949
+ * The **`mapAsync()`** method of the GPUBuffer interface maps the specified range of the GPUBuffer. It returns a Promise that resolves when the GPUBuffer's content is ready to be accessed. While the GPUBuffer is mapped it cannot be used in any GPU commands.
3950
+ *
3951
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
3952
+ */
3953
+ mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
3954
+ /**
3955
+ * The **`unmap()`** method of the GPUBuffer interface unmaps the mapped range of the GPUBuffer, making its contents available for use by the GPU again after it has previously been mapped with GPUBuffer.mapAsync() (the GPU cannot access a mapped GPUBuffer).
3956
+ *
3957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
3958
+ */
3959
+ unmap(): void;
3960
+ }
3961
+
3962
+ declare var GPUBuffer: {
3963
+ prototype: GPUBuffer;
3964
+ new(): GPUBuffer;
3965
+ };
3966
+
3967
+ /**
3968
+ * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
3969
+ * Available only in secure contexts.
3970
+ *
3971
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
3972
+ */
3973
+ interface GPUCommandBuffer extends GPUObjectBase {
3974
+ }
3975
+
3976
+ declare var GPUCommandBuffer: {
3977
+ prototype: GPUCommandBuffer;
3978
+ new(): GPUCommandBuffer;
3979
+ };
3980
+
3981
+ /**
3982
+ * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code.
3983
+ * Available only in secure contexts.
3984
+ *
3985
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
3986
+ */
3987
+ interface GPUCompilationInfo {
3988
+ /**
3989
+ * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors.
3990
+ *
3991
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
3992
+ */
3993
+ readonly messages: ReadonlyArray<GPUCompilationMessage>;
3994
+ }
3995
+
3996
+ declare var GPUCompilationInfo: {
3997
+ prototype: GPUCompilationInfo;
3998
+ new(): GPUCompilationInfo;
3999
+ };
4000
+
4001
+ /**
4002
+ * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
4003
+ * Available only in secure contexts.
4004
+ *
4005
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
4006
+ */
4007
+ interface GPUCompilationMessage {
4008
+ /**
4009
+ * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
4010
+ *
4011
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
4012
+ */
4013
+ readonly length: number;
4014
+ /**
4015
+ * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to.
4016
+ *
4017
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
4018
+ */
4019
+ readonly lineNum: number;
4020
+ /**
4021
+ * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring.
4022
+ *
4023
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
4024
+ */
4025
+ readonly linePos: number;
4026
+ /**
4027
+ * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
4028
+ *
4029
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
4030
+ */
4031
+ readonly message: string;
4032
+ /**
4033
+ * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to.
4034
+ *
4035
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
4036
+ */
4037
+ readonly offset: number;
4038
+ /**
4039
+ * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level.
4040
+ *
4041
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
4042
+ */
4043
+ readonly type: GPUCompilationMessageType;
4044
+ }
4045
+
4046
+ declare var GPUCompilationMessage: {
4047
+ prototype: GPUCompilationMessage;
4048
+ new(): GPUCompilationMessage;
4049
+ };
4050
+
4051
+ /**
4052
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
4053
+ * Available only in secure contexts.
4054
+ *
4055
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
4056
+ */
4057
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
4058
+ }
4059
+
4060
+ declare var GPUComputePipeline: {
4061
+ prototype: GPUComputePipeline;
4062
+ new(): GPUComputePipeline;
4063
+ };
4064
+
4065
+ /**
4066
+ * 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
+ * Available only in secure contexts.
4068
+ *
4069
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
4070
+ */
4071
+ interface GPUDeviceLostInfo {
4072
+ /**
4073
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
4074
+ *
4075
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
4076
+ */
4077
+ readonly message: string;
4078
+ /**
4079
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
4080
+ *
4081
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
4082
+ */
4083
+ readonly reason: GPUDeviceLostReason;
4084
+ }
4085
+
4086
+ declare var GPUDeviceLostInfo: {
4087
+ prototype: GPUDeviceLostInfo;
4088
+ new(): GPUDeviceLostInfo;
4089
+ };
4090
+
3864
4091
  /**
3865
4092
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
3866
4093
  * Available only in secure contexts.
@@ -3881,6 +4108,58 @@ declare var GPUError: {
3881
4108
  new(): GPUError;
3882
4109
  };
3883
4110
 
4111
+ /**
4112
+ * 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.
4113
+ * Available only in secure contexts.
4114
+ *
4115
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
4116
+ */
4117
+ interface GPUExternalTexture extends GPUObjectBase {
4118
+ }
4119
+
4120
+ declare var GPUExternalTexture: {
4121
+ prototype: GPUExternalTexture;
4122
+ new(): GPUExternalTexture;
4123
+ };
4124
+
4125
+ /**
4126
+ * 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.
4127
+ * Available only in secure contexts.
4128
+ *
4129
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
4130
+ */
4131
+ interface GPUInternalError extends GPUError {
4132
+ }
4133
+
4134
+ declare var GPUInternalError: {
4135
+ prototype: GPUInternalError;
4136
+ new(message: string): GPUInternalError;
4137
+ };
4138
+
4139
+ interface GPUObjectBase {
4140
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
4141
+ label: string;
4142
+ }
4143
+
4144
+ /**
4145
+ * 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.
4146
+ * Available only in secure contexts.
4147
+ *
4148
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
4149
+ */
4150
+ interface GPUOutOfMemoryError extends GPUError {
4151
+ }
4152
+
4153
+ declare var GPUOutOfMemoryError: {
4154
+ prototype: GPUOutOfMemoryError;
4155
+ new(message: string): GPUOutOfMemoryError;
4156
+ };
4157
+
4158
+ interface GPUPipelineBase {
4159
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
4160
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
4161
+ }
4162
+
3884
4163
  /**
3885
4164
  * 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
4165
  * Available only in secure contexts.
@@ -3901,6 +4180,295 @@ declare var GPUPipelineError: {
3901
4180
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
3902
4181
  };
3903
4182
 
4183
+ /**
4184
+ * 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.
4185
+ * Available only in secure contexts.
4186
+ *
4187
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
4188
+ */
4189
+ interface GPUPipelineLayout extends GPUObjectBase {
4190
+ }
4191
+
4192
+ declare var GPUPipelineLayout: {
4193
+ prototype: GPUPipelineLayout;
4194
+ new(): GPUPipelineLayout;
4195
+ };
4196
+
4197
+ /**
4198
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4199
+ * Available only in secure contexts.
4200
+ *
4201
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
4202
+ */
4203
+ interface GPURenderBundle extends GPUObjectBase {
4204
+ }
4205
+
4206
+ declare var GPURenderBundle: {
4207
+ prototype: GPURenderBundle;
4208
+ new(): GPURenderBundle;
4209
+ };
4210
+
4211
+ /**
4212
+ * 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.
4213
+ * Available only in secure contexts.
4214
+ *
4215
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
4216
+ */
4217
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
4218
+ }
4219
+
4220
+ declare var GPURenderPipeline: {
4221
+ prototype: GPURenderPipeline;
4222
+ new(): GPURenderPipeline;
4223
+ };
4224
+
4225
+ /**
4226
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
4227
+ * Available only in secure contexts.
4228
+ *
4229
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
4230
+ */
4231
+ interface GPUSampler extends GPUObjectBase {
4232
+ }
4233
+
4234
+ declare var GPUSampler: {
4235
+ prototype: GPUSampler;
4236
+ new(): GPUSampler;
4237
+ };
4238
+
4239
+ /**
4240
+ * The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4241
+ * Available only in secure contexts.
4242
+ *
4243
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4244
+ */
4245
+ interface GPUShaderModule extends GPUObjectBase {
4246
+ /**
4247
+ * The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4248
+ *
4249
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4250
+ */
4251
+ getCompilationInfo(): Promise<GPUCompilationInfo>;
4252
+ }
4253
+
4254
+ declare var GPUShaderModule: {
4255
+ prototype: GPUShaderModule;
4256
+ new(): GPUShaderModule;
4257
+ };
4258
+
4259
+ /**
4260
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
4261
+ * Available only in secure contexts.
4262
+ *
4263
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
4264
+ */
4265
+ interface GPUSupportedFeatures {
4266
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
4267
+ }
4268
+
4269
+ declare var GPUSupportedFeatures: {
4270
+ prototype: GPUSupportedFeatures;
4271
+ new(): GPUSupportedFeatures;
4272
+ };
4273
+
4274
+ /**
4275
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
4276
+ * Available only in secure contexts.
4277
+ *
4278
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
4279
+ */
4280
+ interface GPUSupportedLimits {
4281
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4282
+ readonly maxBindGroups: number;
4283
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4284
+ readonly maxBindGroupsPlusVertexBuffers: number;
4285
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4286
+ readonly maxBindingsPerBindGroup: number;
4287
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4288
+ readonly maxBufferSize: number;
4289
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4290
+ readonly maxColorAttachmentBytesPerSample: number;
4291
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4292
+ readonly maxColorAttachments: number;
4293
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4294
+ readonly maxComputeInvocationsPerWorkgroup: number;
4295
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4296
+ readonly maxComputeWorkgroupSizeX: number;
4297
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4298
+ readonly maxComputeWorkgroupSizeY: number;
4299
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4300
+ readonly maxComputeWorkgroupSizeZ: number;
4301
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4302
+ readonly maxComputeWorkgroupStorageSize: number;
4303
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4304
+ readonly maxComputeWorkgroupsPerDimension: number;
4305
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4306
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
4307
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4308
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
4309
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4310
+ readonly maxInterStageShaderVariables: number;
4311
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4312
+ readonly maxSampledTexturesPerShaderStage: number;
4313
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4314
+ readonly maxSamplersPerShaderStage: number;
4315
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4316
+ readonly maxStorageBufferBindingSize: number;
4317
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4318
+ readonly maxStorageBuffersPerShaderStage: number;
4319
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4320
+ readonly maxStorageTexturesPerShaderStage: number;
4321
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4322
+ readonly maxTextureArrayLayers: number;
4323
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4324
+ readonly maxTextureDimension1D: number;
4325
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4326
+ readonly maxTextureDimension2D: number;
4327
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4328
+ readonly maxTextureDimension3D: number;
4329
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4330
+ readonly maxUniformBufferBindingSize: number;
4331
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4332
+ readonly maxUniformBuffersPerShaderStage: number;
4333
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4334
+ readonly maxVertexAttributes: number;
4335
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4336
+ readonly maxVertexBufferArrayStride: number;
4337
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4338
+ readonly maxVertexBuffers: number;
4339
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4340
+ readonly minStorageBufferOffsetAlignment: number;
4341
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4342
+ readonly minUniformBufferOffsetAlignment: number;
4343
+ }
4344
+
4345
+ declare var GPUSupportedLimits: {
4346
+ prototype: GPUSupportedLimits;
4347
+ new(): GPUSupportedLimits;
4348
+ };
4349
+
4350
+ /**
4351
+ * 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.
4352
+ * Available only in secure contexts.
4353
+ *
4354
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
4355
+ */
4356
+ interface GPUTexture extends GPUObjectBase {
4357
+ /**
4358
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
4359
+ *
4360
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
4361
+ */
4362
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
4363
+ /**
4364
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
4365
+ *
4366
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
4367
+ */
4368
+ readonly dimension: GPUTextureDimension;
4369
+ /**
4370
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
4371
+ *
4372
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
4373
+ */
4374
+ readonly format: GPUTextureFormat;
4375
+ /**
4376
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
4377
+ *
4378
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
4379
+ */
4380
+ readonly height: GPUIntegerCoordinateOut;
4381
+ /**
4382
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
4383
+ *
4384
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
4385
+ */
4386
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
4387
+ /**
4388
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
4389
+ *
4390
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
4391
+ */
4392
+ readonly sampleCount: GPUSize32Out;
4393
+ /**
4394
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
4395
+ *
4396
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
4397
+ */
4398
+ readonly usage: GPUFlagsConstant;
4399
+ /**
4400
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
4401
+ *
4402
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
4403
+ */
4404
+ readonly width: GPUIntegerCoordinateOut;
4405
+ /**
4406
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
4407
+ *
4408
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
4409
+ */
4410
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
4411
+ /**
4412
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
4413
+ *
4414
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
4415
+ */
4416
+ destroy(): void;
4417
+ }
4418
+
4419
+ declare var GPUTexture: {
4420
+ prototype: GPUTexture;
4421
+ new(): GPUTexture;
4422
+ };
4423
+
4424
+ /**
4425
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
4426
+ * Available only in secure contexts.
4427
+ *
4428
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
4429
+ */
4430
+ interface GPUTextureView extends GPUObjectBase {
4431
+ }
4432
+
4433
+ declare var GPUTextureView: {
4434
+ prototype: GPUTextureView;
4435
+ new(): GPUTextureView;
4436
+ };
4437
+
4438
+ /**
4439
+ * 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.
4440
+ * Available only in secure contexts.
4441
+ *
4442
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
4443
+ */
4444
+ interface GPUUncapturedErrorEvent extends Event {
4445
+ /**
4446
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
4447
+ *
4448
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
4449
+ */
4450
+ readonly error: GPUError;
4451
+ }
4452
+
4453
+ declare var GPUUncapturedErrorEvent: {
4454
+ prototype: GPUUncapturedErrorEvent;
4455
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
4456
+ };
4457
+
4458
+ /**
4459
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
4460
+ * Available only in secure contexts.
4461
+ *
4462
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
4463
+ */
4464
+ interface GPUValidationError extends GPUError {
4465
+ }
4466
+
4467
+ declare var GPUValidationError: {
4468
+ prototype: GPUValidationError;
4469
+ new(message: string): GPUValidationError;
4470
+ };
4471
+
3904
4472
  interface GenericTransformStream {
3905
4473
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
3906
4474
  readonly readable: ReadableStream;
@@ -5688,7 +6256,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
5688
6256
  */
5689
6257
  readonly redirectStart: DOMHighResTimeStamp;
5690
6258
  /**
5691
- * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.
6259
+ * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retries the request, the value returned will be the start of the retry request.
5692
6260
  *
5693
6261
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
5694
6262
  */
@@ -7775,6 +8343,21 @@ interface WEBGL_multi_draw {
7775
8343
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
7776
8344
  }
7777
8345
 
8346
+ /**
8347
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
8348
+ * Available only in secure contexts.
8349
+ *
8350
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
8351
+ */
8352
+ interface WGSLLanguageFeatures {
8353
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
8354
+ }
8355
+
8356
+ declare var WGSLLanguageFeatures: {
8357
+ prototype: WGSLLanguageFeatures;
8358
+ new(): WGSLLanguageFeatures;
8359
+ };
8360
+
7778
8361
  /**
7779
8362
  * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
7780
8363
  *
@@ -11442,6 +12025,14 @@ type GLsizei = number;
11442
12025
  type GLsizeiptr = number;
11443
12026
  type GLuint = number;
11444
12027
  type GLuint64 = number;
12028
+ type GPUFlagsConstant = number;
12029
+ type GPUIntegerCoordinate = number;
12030
+ type GPUIntegerCoordinateOut = number;
12031
+ type GPUMapModeFlags = number;
12032
+ type GPUSize32Out = number;
12033
+ type GPUSize64 = number;
12034
+ type GPUSize64Out = number;
12035
+ type GPUTextureUsageFlags = number;
11445
12036
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
11446
12037
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
11447
12038
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
@@ -11486,7 +12077,14 @@ type FileSystemHandleKind = "directory" | "file";
11486
12077
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
11487
12078
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
11488
12079
  type FontFaceSetLoadStatus = "loaded" | "loading";
12080
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12081
+ type GPUCompilationMessageType = "error" | "info" | "warning";
12082
+ type GPUDeviceLostReason = "destroyed" | "unknown";
11489
12083
  type GPUPipelineErrorReason = "internal" | "validation";
12084
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12085
+ type GPUTextureDimension = "1d" | "2d" | "3d";
12086
+ 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";
12087
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
11490
12088
  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
12089
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
11492
12090
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";