@types/webworker 0.0.53 → 0.0.55

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
@@ -362,10 +362,29 @@ interface FontFaceSetLoadEventInit extends EventInit {
362
362
  fontfaces?: FontFace[];
363
363
  }
364
364
 
365
+ interface GPUObjectDescriptorBase {
366
+ label?: string;
367
+ }
368
+
365
369
  interface GPUPipelineErrorInit {
366
370
  reason: GPUPipelineErrorReason;
367
371
  }
368
372
 
373
+ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
374
+ arrayLayerCount?: GPUIntegerCoordinate;
375
+ aspect?: GPUTextureAspect;
376
+ baseArrayLayer?: GPUIntegerCoordinate;
377
+ baseMipLevel?: GPUIntegerCoordinate;
378
+ dimension?: GPUTextureViewDimension;
379
+ format?: GPUTextureFormat;
380
+ mipLevelCount?: GPUIntegerCoordinate;
381
+ usage?: GPUTextureUsageFlags;
382
+ }
383
+
384
+ interface GPUUncapturedErrorEventInit extends EventInit {
385
+ error: GPUError;
386
+ }
387
+
369
388
  interface GetNotificationOptions {
370
389
  tag?: string;
371
390
  }
@@ -4880,6 +4899,214 @@ declare var FormData: {
4880
4899
  new(): FormData;
4881
4900
  };
4882
4901
 
4902
+ /**
4903
+ * 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.
4904
+ * Available only in secure contexts.
4905
+ *
4906
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
4907
+ */
4908
+ interface GPUBindGroup extends GPUObjectBase {
4909
+ }
4910
+
4911
+ declare var GPUBindGroup: {
4912
+ prototype: GPUBindGroup;
4913
+ new(): GPUBindGroup;
4914
+ };
4915
+
4916
+ /**
4917
+ * 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.
4918
+ * Available only in secure contexts.
4919
+ *
4920
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
4921
+ */
4922
+ interface GPUBindGroupLayout extends GPUObjectBase {
4923
+ }
4924
+
4925
+ declare var GPUBindGroupLayout: {
4926
+ prototype: GPUBindGroupLayout;
4927
+ new(): GPUBindGroupLayout;
4928
+ };
4929
+
4930
+ /**
4931
+ * 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.
4932
+ * Available only in secure contexts.
4933
+ *
4934
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
4935
+ */
4936
+ interface GPUBuffer extends GPUObjectBase {
4937
+ /**
4938
+ * The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
4939
+ *
4940
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
4941
+ */
4942
+ readonly mapState: GPUBufferMapState;
4943
+ /**
4944
+ * The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
4945
+ *
4946
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
4947
+ */
4948
+ readonly size: GPUSize64Out;
4949
+ /**
4950
+ * The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
4951
+ *
4952
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
4953
+ */
4954
+ readonly usage: GPUFlagsConstant;
4955
+ /**
4956
+ * The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
4957
+ *
4958
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
4959
+ */
4960
+ destroy(): void;
4961
+ /**
4962
+ * The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
4963
+ *
4964
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
4965
+ */
4966
+ getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
4967
+ /**
4968
+ * 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.
4969
+ *
4970
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
4971
+ */
4972
+ mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
4973
+ /**
4974
+ * 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).
4975
+ *
4976
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
4977
+ */
4978
+ unmap(): void;
4979
+ }
4980
+
4981
+ declare var GPUBuffer: {
4982
+ prototype: GPUBuffer;
4983
+ new(): GPUBuffer;
4984
+ };
4985
+
4986
+ /**
4987
+ * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
4988
+ * Available only in secure contexts.
4989
+ *
4990
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
4991
+ */
4992
+ interface GPUCommandBuffer extends GPUObjectBase {
4993
+ }
4994
+
4995
+ declare var GPUCommandBuffer: {
4996
+ prototype: GPUCommandBuffer;
4997
+ new(): GPUCommandBuffer;
4998
+ };
4999
+
5000
+ /**
5001
+ * 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.
5002
+ * Available only in secure contexts.
5003
+ *
5004
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
5005
+ */
5006
+ interface GPUCompilationInfo {
5007
+ /**
5008
+ * 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.
5009
+ *
5010
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
5011
+ */
5012
+ readonly messages: ReadonlyArray<GPUCompilationMessage>;
5013
+ }
5014
+
5015
+ declare var GPUCompilationInfo: {
5016
+ prototype: GPUCompilationInfo;
5017
+ new(): GPUCompilationInfo;
5018
+ };
5019
+
5020
+ /**
5021
+ * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
5022
+ * Available only in secure contexts.
5023
+ *
5024
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
5025
+ */
5026
+ interface GPUCompilationMessage {
5027
+ /**
5028
+ * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
5029
+ *
5030
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
5031
+ */
5032
+ readonly length: number;
5033
+ /**
5034
+ * 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.
5035
+ *
5036
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
5037
+ */
5038
+ readonly lineNum: number;
5039
+ /**
5040
+ * 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.
5041
+ *
5042
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
5043
+ */
5044
+ readonly linePos: number;
5045
+ /**
5046
+ * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
5047
+ *
5048
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
5049
+ */
5050
+ readonly message: string;
5051
+ /**
5052
+ * 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.
5053
+ *
5054
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
5055
+ */
5056
+ readonly offset: number;
5057
+ /**
5058
+ * 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.
5059
+ *
5060
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
5061
+ */
5062
+ readonly type: GPUCompilationMessageType;
5063
+ }
5064
+
5065
+ declare var GPUCompilationMessage: {
5066
+ prototype: GPUCompilationMessage;
5067
+ new(): GPUCompilationMessage;
5068
+ };
5069
+
5070
+ /**
5071
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
5072
+ * Available only in secure contexts.
5073
+ *
5074
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
5075
+ */
5076
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
5077
+ }
5078
+
5079
+ declare var GPUComputePipeline: {
5080
+ prototype: GPUComputePipeline;
5081
+ new(): GPUComputePipeline;
5082
+ };
5083
+
5084
+ /**
5085
+ * 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.
5086
+ * Available only in secure contexts.
5087
+ *
5088
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
5089
+ */
5090
+ interface GPUDeviceLostInfo {
5091
+ /**
5092
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
5093
+ *
5094
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
5095
+ */
5096
+ readonly message: string;
5097
+ /**
5098
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
5099
+ *
5100
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
5101
+ */
5102
+ readonly reason: GPUDeviceLostReason;
5103
+ }
5104
+
5105
+ declare var GPUDeviceLostInfo: {
5106
+ prototype: GPUDeviceLostInfo;
5107
+ new(): GPUDeviceLostInfo;
5108
+ };
5109
+
4883
5110
  /**
4884
5111
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
4885
5112
  * Available only in secure contexts.
@@ -4900,6 +5127,58 @@ declare var GPUError: {
4900
5127
  new(): GPUError;
4901
5128
  };
4902
5129
 
5130
+ /**
5131
+ * 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.
5132
+ * Available only in secure contexts.
5133
+ *
5134
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
5135
+ */
5136
+ interface GPUExternalTexture extends GPUObjectBase {
5137
+ }
5138
+
5139
+ declare var GPUExternalTexture: {
5140
+ prototype: GPUExternalTexture;
5141
+ new(): GPUExternalTexture;
5142
+ };
5143
+
5144
+ /**
5145
+ * 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.
5146
+ * Available only in secure contexts.
5147
+ *
5148
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
5149
+ */
5150
+ interface GPUInternalError extends GPUError {
5151
+ }
5152
+
5153
+ declare var GPUInternalError: {
5154
+ prototype: GPUInternalError;
5155
+ new(message: string): GPUInternalError;
5156
+ };
5157
+
5158
+ interface GPUObjectBase {
5159
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
5160
+ label: string;
5161
+ }
5162
+
5163
+ /**
5164
+ * 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.
5165
+ * Available only in secure contexts.
5166
+ *
5167
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
5168
+ */
5169
+ interface GPUOutOfMemoryError extends GPUError {
5170
+ }
5171
+
5172
+ declare var GPUOutOfMemoryError: {
5173
+ prototype: GPUOutOfMemoryError;
5174
+ new(message: string): GPUOutOfMemoryError;
5175
+ };
5176
+
5177
+ interface GPUPipelineBase {
5178
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
5179
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
5180
+ }
5181
+
4903
5182
  /**
4904
5183
  * 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.
4905
5184
  * Available only in secure contexts.
@@ -4920,6 +5199,295 @@ declare var GPUPipelineError: {
4920
5199
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
4921
5200
  };
4922
5201
 
5202
+ /**
5203
+ * 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.
5204
+ * Available only in secure contexts.
5205
+ *
5206
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
5207
+ */
5208
+ interface GPUPipelineLayout extends GPUObjectBase {
5209
+ }
5210
+
5211
+ declare var GPUPipelineLayout: {
5212
+ prototype: GPUPipelineLayout;
5213
+ new(): GPUPipelineLayout;
5214
+ };
5215
+
5216
+ /**
5217
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
5218
+ * Available only in secure contexts.
5219
+ *
5220
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
5221
+ */
5222
+ interface GPURenderBundle extends GPUObjectBase {
5223
+ }
5224
+
5225
+ declare var GPURenderBundle: {
5226
+ prototype: GPURenderBundle;
5227
+ new(): GPURenderBundle;
5228
+ };
5229
+
5230
+ /**
5231
+ * 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.
5232
+ * Available only in secure contexts.
5233
+ *
5234
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
5235
+ */
5236
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
5237
+ }
5238
+
5239
+ declare var GPURenderPipeline: {
5240
+ prototype: GPURenderPipeline;
5241
+ new(): GPURenderPipeline;
5242
+ };
5243
+
5244
+ /**
5245
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
5246
+ * Available only in secure contexts.
5247
+ *
5248
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
5249
+ */
5250
+ interface GPUSampler extends GPUObjectBase {
5251
+ }
5252
+
5253
+ declare var GPUSampler: {
5254
+ prototype: GPUSampler;
5255
+ new(): GPUSampler;
5256
+ };
5257
+
5258
+ /**
5259
+ * 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.
5260
+ * Available only in secure contexts.
5261
+ *
5262
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
5263
+ */
5264
+ interface GPUShaderModule extends GPUObjectBase {
5265
+ /**
5266
+ * The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
5267
+ *
5268
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
5269
+ */
5270
+ getCompilationInfo(): Promise<GPUCompilationInfo>;
5271
+ }
5272
+
5273
+ declare var GPUShaderModule: {
5274
+ prototype: GPUShaderModule;
5275
+ new(): GPUShaderModule;
5276
+ };
5277
+
5278
+ /**
5279
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
5280
+ * Available only in secure contexts.
5281
+ *
5282
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
5283
+ */
5284
+ interface GPUSupportedFeatures {
5285
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
5286
+ }
5287
+
5288
+ declare var GPUSupportedFeatures: {
5289
+ prototype: GPUSupportedFeatures;
5290
+ new(): GPUSupportedFeatures;
5291
+ };
5292
+
5293
+ /**
5294
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
5295
+ * Available only in secure contexts.
5296
+ *
5297
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
5298
+ */
5299
+ interface GPUSupportedLimits {
5300
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5301
+ readonly maxBindGroups: number;
5302
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5303
+ readonly maxBindGroupsPlusVertexBuffers: number;
5304
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5305
+ readonly maxBindingsPerBindGroup: number;
5306
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5307
+ readonly maxBufferSize: number;
5308
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5309
+ readonly maxColorAttachmentBytesPerSample: number;
5310
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5311
+ readonly maxColorAttachments: number;
5312
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5313
+ readonly maxComputeInvocationsPerWorkgroup: number;
5314
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5315
+ readonly maxComputeWorkgroupSizeX: number;
5316
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5317
+ readonly maxComputeWorkgroupSizeY: number;
5318
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5319
+ readonly maxComputeWorkgroupSizeZ: number;
5320
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5321
+ readonly maxComputeWorkgroupStorageSize: number;
5322
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5323
+ readonly maxComputeWorkgroupsPerDimension: number;
5324
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5325
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
5326
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5327
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
5328
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5329
+ readonly maxInterStageShaderVariables: number;
5330
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5331
+ readonly maxSampledTexturesPerShaderStage: number;
5332
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5333
+ readonly maxSamplersPerShaderStage: number;
5334
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5335
+ readonly maxStorageBufferBindingSize: number;
5336
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5337
+ readonly maxStorageBuffersPerShaderStage: number;
5338
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5339
+ readonly maxStorageTexturesPerShaderStage: number;
5340
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5341
+ readonly maxTextureArrayLayers: number;
5342
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5343
+ readonly maxTextureDimension1D: number;
5344
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5345
+ readonly maxTextureDimension2D: number;
5346
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5347
+ readonly maxTextureDimension3D: number;
5348
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5349
+ readonly maxUniformBufferBindingSize: number;
5350
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5351
+ readonly maxUniformBuffersPerShaderStage: number;
5352
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5353
+ readonly maxVertexAttributes: number;
5354
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5355
+ readonly maxVertexBufferArrayStride: number;
5356
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5357
+ readonly maxVertexBuffers: number;
5358
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5359
+ readonly minStorageBufferOffsetAlignment: number;
5360
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
5361
+ readonly minUniformBufferOffsetAlignment: number;
5362
+ }
5363
+
5364
+ declare var GPUSupportedLimits: {
5365
+ prototype: GPUSupportedLimits;
5366
+ new(): GPUSupportedLimits;
5367
+ };
5368
+
5369
+ /**
5370
+ * 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.
5371
+ * Available only in secure contexts.
5372
+ *
5373
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
5374
+ */
5375
+ interface GPUTexture extends GPUObjectBase {
5376
+ /**
5377
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
5378
+ *
5379
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
5380
+ */
5381
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
5382
+ /**
5383
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
5384
+ *
5385
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
5386
+ */
5387
+ readonly dimension: GPUTextureDimension;
5388
+ /**
5389
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
5390
+ *
5391
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
5392
+ */
5393
+ readonly format: GPUTextureFormat;
5394
+ /**
5395
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
5396
+ *
5397
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
5398
+ */
5399
+ readonly height: GPUIntegerCoordinateOut;
5400
+ /**
5401
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
5402
+ *
5403
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
5404
+ */
5405
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
5406
+ /**
5407
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
5408
+ *
5409
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
5410
+ */
5411
+ readonly sampleCount: GPUSize32Out;
5412
+ /**
5413
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
5414
+ *
5415
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
5416
+ */
5417
+ readonly usage: GPUFlagsConstant;
5418
+ /**
5419
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
5420
+ *
5421
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
5422
+ */
5423
+ readonly width: GPUIntegerCoordinateOut;
5424
+ /**
5425
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
5426
+ *
5427
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
5428
+ */
5429
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
5430
+ /**
5431
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
5432
+ *
5433
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
5434
+ */
5435
+ destroy(): void;
5436
+ }
5437
+
5438
+ declare var GPUTexture: {
5439
+ prototype: GPUTexture;
5440
+ new(): GPUTexture;
5441
+ };
5442
+
5443
+ /**
5444
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
5445
+ * Available only in secure contexts.
5446
+ *
5447
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
5448
+ */
5449
+ interface GPUTextureView extends GPUObjectBase {
5450
+ }
5451
+
5452
+ declare var GPUTextureView: {
5453
+ prototype: GPUTextureView;
5454
+ new(): GPUTextureView;
5455
+ };
5456
+
5457
+ /**
5458
+ * 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.
5459
+ * Available only in secure contexts.
5460
+ *
5461
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
5462
+ */
5463
+ interface GPUUncapturedErrorEvent extends Event {
5464
+ /**
5465
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
5466
+ *
5467
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
5468
+ */
5469
+ readonly error: GPUError;
5470
+ }
5471
+
5472
+ declare var GPUUncapturedErrorEvent: {
5473
+ prototype: GPUUncapturedErrorEvent;
5474
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
5475
+ };
5476
+
5477
+ /**
5478
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
5479
+ * Available only in secure contexts.
5480
+ *
5481
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
5482
+ */
5483
+ interface GPUValidationError extends GPUError {
5484
+ }
5485
+
5486
+ declare var GPUValidationError: {
5487
+ prototype: GPUValidationError;
5488
+ new(message: string): GPUValidationError;
5489
+ };
5490
+
4923
5491
  interface GenericTransformStream {
4924
5492
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
4925
5493
  readonly readable: ReadableStream;
@@ -5874,6 +6442,19 @@ interface ImportMeta {
5874
6442
  resolve(specifier: string): string;
5875
6443
  }
5876
6444
 
6445
+ /**
6446
+ * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
6447
+ *
6448
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
6449
+ */
6450
+ interface InstallEvent extends ExtendableEvent {
6451
+ }
6452
+
6453
+ declare var InstallEvent: {
6454
+ prototype: InstallEvent;
6455
+ new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
6456
+ };
6457
+
5877
6458
  /**
5878
6459
  * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
5879
6460
  *
@@ -6903,7 +7484,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
6903
7484
  */
6904
7485
  readonly redirectStart: DOMHighResTimeStamp;
6905
7486
  /**
6906
- * 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.
7487
+ * 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.
6907
7488
  *
6908
7489
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
6909
7490
  */
@@ -9692,6 +10273,21 @@ interface WEBGL_multi_draw {
9692
10273
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
9693
10274
  }
9694
10275
 
10276
+ /**
10277
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
10278
+ * Available only in secure contexts.
10279
+ *
10280
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
10281
+ */
10282
+ interface WGSLLanguageFeatures {
10283
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
10284
+ }
10285
+
10286
+ declare var WGSLLanguageFeatures: {
10287
+ prototype: WGSLLanguageFeatures;
10288
+ new(): WGSLLanguageFeatures;
10289
+ };
10290
+
9695
10291
  /**
9696
10292
  * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
9697
10293
  *
@@ -13436,6 +14032,14 @@ type GLsizei = number;
13436
14032
  type GLsizeiptr = number;
13437
14033
  type GLuint = number;
13438
14034
  type GLuint64 = number;
14035
+ type GPUFlagsConstant = number;
14036
+ type GPUIntegerCoordinate = number;
14037
+ type GPUIntegerCoordinateOut = number;
14038
+ type GPUMapModeFlags = number;
14039
+ type GPUSize32Out = number;
14040
+ type GPUSize64 = number;
14041
+ type GPUSize64Out = number;
14042
+ type GPUTextureUsageFlags = number;
13439
14043
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
13440
14044
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
13441
14045
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
@@ -13493,7 +14097,14 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
13493
14097
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
13494
14098
  type FontFaceSetLoadStatus = "loaded" | "loading";
13495
14099
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
14100
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
14101
+ type GPUCompilationMessageType = "error" | "info" | "warning";
14102
+ type GPUDeviceLostReason = "destroyed" | "unknown";
13496
14103
  type GPUPipelineErrorReason = "internal" | "validation";
14104
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
14105
+ type GPUTextureDimension = "1d" | "2d" | "3d";
14106
+ 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";
14107
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
13497
14108
  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";
13498
14109
  type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
13499
14110
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";