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