@types/sharedworker 0.0.212 → 0.0.214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.212 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.212.
31
+ You can read what changed in version 0.0.214 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.214.
package/index.d.ts CHANGED
@@ -219,6 +219,20 @@ interface FontFaceSetLoadEventInit extends EventInit {
219
219
  fontfaces?: FontFace[];
220
220
  }
221
221
 
222
+ interface GPUCanvasConfiguration {
223
+ alphaMode?: GPUCanvasAlphaMode;
224
+ colorSpace?: PredefinedColorSpace;
225
+ device: GPUDevice;
226
+ format: GPUTextureFormat;
227
+ toneMapping?: GPUCanvasToneMapping;
228
+ usage?: GPUTextureUsageFlags;
229
+ viewFormats?: GPUTextureFormat[];
230
+ }
231
+
232
+ interface GPUCanvasToneMapping {
233
+ mode?: GPUCanvasToneMappingMode;
234
+ }
235
+
222
236
  interface GPUColorDict {
223
237
  a: number;
224
238
  b: number;
@@ -226,10 +240,51 @@ interface GPUColorDict {
226
240
  r: number;
227
241
  }
228
242
 
243
+ interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
244
+ }
245
+
246
+ interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
247
+ timestampWrites?: GPUComputePassTimestampWrites;
248
+ }
249
+
250
+ interface GPUComputePassTimestampWrites {
251
+ beginningOfPassWriteIndex?: GPUSize32;
252
+ endOfPassWriteIndex?: GPUSize32;
253
+ querySet: GPUQuerySet;
254
+ }
255
+
256
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
257
+ colorSpace?: PredefinedColorSpace;
258
+ premultipliedAlpha?: boolean;
259
+ }
260
+
261
+ interface GPUCopyExternalImageSourceInfo {
262
+ flipY?: boolean;
263
+ origin?: GPUOrigin2D;
264
+ source: GPUCopyExternalImageSource;
265
+ }
266
+
267
+ interface GPUExtent3DDict {
268
+ depthOrArrayLayers?: GPUIntegerCoordinate;
269
+ height?: GPUIntegerCoordinate;
270
+ width: GPUIntegerCoordinate;
271
+ }
272
+
229
273
  interface GPUObjectDescriptorBase {
230
274
  label?: string;
231
275
  }
232
276
 
277
+ interface GPUOrigin2DDict {
278
+ x?: GPUIntegerCoordinate;
279
+ y?: GPUIntegerCoordinate;
280
+ }
281
+
282
+ interface GPUOrigin3DDict {
283
+ x?: GPUIntegerCoordinate;
284
+ y?: GPUIntegerCoordinate;
285
+ z?: GPUIntegerCoordinate;
286
+ }
287
+
233
288
  interface GPUPipelineErrorInit {
234
289
  reason: GPUPipelineErrorReason;
235
290
  }
@@ -237,6 +292,58 @@ interface GPUPipelineErrorInit {
237
292
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
238
293
  }
239
294
 
295
+ interface GPURenderPassColorAttachment {
296
+ clearValue?: GPUColor;
297
+ depthSlice?: GPUIntegerCoordinate;
298
+ loadOp: GPULoadOp;
299
+ resolveTarget?: GPUTexture | GPUTextureView;
300
+ storeOp: GPUStoreOp;
301
+ view: GPUTexture | GPUTextureView;
302
+ }
303
+
304
+ interface GPURenderPassDepthStencilAttachment {
305
+ depthClearValue?: number;
306
+ depthLoadOp?: GPULoadOp;
307
+ depthReadOnly?: boolean;
308
+ depthStoreOp?: GPUStoreOp;
309
+ stencilClearValue?: GPUStencilValue;
310
+ stencilLoadOp?: GPULoadOp;
311
+ stencilReadOnly?: boolean;
312
+ stencilStoreOp?: GPUStoreOp;
313
+ view: GPUTexture | GPUTextureView;
314
+ }
315
+
316
+ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
317
+ colorAttachments: (GPURenderPassColorAttachment | null)[];
318
+ depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
319
+ maxDrawCount?: GPUSize64;
320
+ occlusionQuerySet?: GPUQuerySet;
321
+ timestampWrites?: GPURenderPassTimestampWrites;
322
+ }
323
+
324
+ interface GPURenderPassTimestampWrites {
325
+ beginningOfPassWriteIndex?: GPUSize32;
326
+ endOfPassWriteIndex?: GPUSize32;
327
+ querySet: GPUQuerySet;
328
+ }
329
+
330
+ interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
331
+ buffer: GPUBuffer;
332
+ }
333
+
334
+ interface GPUTexelCopyBufferLayout {
335
+ bytesPerRow?: GPUSize32;
336
+ offset?: GPUSize64;
337
+ rowsPerImage?: GPUSize32;
338
+ }
339
+
340
+ interface GPUTexelCopyTextureInfo {
341
+ aspect?: GPUTextureAspect;
342
+ mipLevel?: GPUIntegerCoordinate;
343
+ origin?: GPUOrigin3D;
344
+ texture: GPUTexture;
345
+ }
346
+
240
347
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
241
348
  arrayLayerCount?: GPUIntegerCoordinate;
242
349
  aspect?: GPUTextureAspect;
@@ -4039,6 +4146,50 @@ declare var GPUBuffer: {
4039
4146
  new(): GPUBuffer;
4040
4147
  };
4041
4148
 
4149
+ /**
4150
+ * The **`GPUCanvasContext`** interface of the WebGPU API represents the WebGPU rendering context of a <canvas> element, returned via an HTMLCanvasElement.getContext() call with a contextType of "webgpu".
4151
+ * Available only in secure contexts.
4152
+ *
4153
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
4154
+ */
4155
+ interface GPUCanvasContext {
4156
+ /**
4157
+ * The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
4158
+ *
4159
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
4160
+ */
4161
+ readonly canvas: OffscreenCanvas;
4162
+ /**
4163
+ * The **`configure()`** method of the GPUCanvasContext interface configures the context to use for rendering with a given GPUDevice. When called the canvas will initially be cleared to transparent black.
4164
+ *
4165
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
4166
+ */
4167
+ configure(configuration: GPUCanvasConfiguration): void;
4168
+ /**
4169
+ * The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
4170
+ *
4171
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
4172
+ */
4173
+ getConfiguration(): GPUCanvasConfiguration | null;
4174
+ /**
4175
+ * The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
4176
+ *
4177
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
4178
+ */
4179
+ getCurrentTexture(): GPUTexture;
4180
+ /**
4181
+ * The **`unconfigure()`** method of the GPUCanvasContext interface removes any previously-set context configuration, and destroys any textures returned via getCurrentTexture() while the canvas context was configured.
4182
+ *
4183
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
4184
+ */
4185
+ unconfigure(): void;
4186
+ }
4187
+
4188
+ declare var GPUCanvasContext: {
4189
+ prototype: GPUCanvasContext;
4190
+ new(): GPUCanvasContext;
4191
+ };
4192
+
4042
4193
  /**
4043
4194
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
4044
4195
  * Available only in secure contexts.
@@ -4053,6 +4204,75 @@ declare var GPUCommandBuffer: {
4053
4204
  new(): GPUCommandBuffer;
4054
4205
  };
4055
4206
 
4207
+ /**
4208
+ * The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
4209
+ * Available only in secure contexts.
4210
+ *
4211
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
4212
+ */
4213
+ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
4214
+ /**
4215
+ * The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
4216
+ *
4217
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
4218
+ */
4219
+ beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
4220
+ /**
4221
+ * The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
4222
+ *
4223
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
4224
+ */
4225
+ beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
4226
+ /**
4227
+ * The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
4228
+ *
4229
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
4230
+ */
4231
+ clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
4232
+ /**
4233
+ * The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
4234
+ *
4235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
4236
+ */
4237
+ copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
4238
+ copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
4239
+ /**
4240
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
4241
+ *
4242
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
4243
+ */
4244
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
4245
+ /**
4246
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
4247
+ *
4248
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
4249
+ */
4250
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
4251
+ /**
4252
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
4253
+ *
4254
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
4255
+ */
4256
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
4257
+ /**
4258
+ * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
4259
+ *
4260
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
4261
+ */
4262
+ finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
4263
+ /**
4264
+ * The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
4265
+ *
4266
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
4267
+ */
4268
+ resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
4269
+ }
4270
+
4271
+ declare var GPUCommandEncoder: {
4272
+ prototype: GPUCommandEncoder;
4273
+ new(): GPUCommandEncoder;
4274
+ };
4275
+
4056
4276
  /**
4057
4277
  * 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.
4058
4278
  * Available only in secure contexts.
@@ -4184,6 +4404,60 @@ interface GPUDebugCommandsMixin {
4184
4404
  pushDebugGroup(groupLabel: string): void;
4185
4405
  }
4186
4406
 
4407
+ interface GPUDeviceEventMap {
4408
+ "uncapturederror": GPUUncapturedErrorEvent;
4409
+ }
4410
+
4411
+ /**
4412
+ * The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
4413
+ * Available only in secure contexts.
4414
+ *
4415
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
4416
+ */
4417
+ interface GPUDevice extends EventTarget, GPUObjectBase {
4418
+ /**
4419
+ * The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
4420
+ *
4421
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
4422
+ */
4423
+ readonly adapterInfo: GPUAdapterInfo;
4424
+ /**
4425
+ * The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
4426
+ *
4427
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
4428
+ */
4429
+ readonly features: GPUSupportedFeatures;
4430
+ /**
4431
+ * The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
4432
+ *
4433
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
4434
+ */
4435
+ readonly limits: GPUSupportedLimits;
4436
+ /**
4437
+ * The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
4438
+ *
4439
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
4440
+ */
4441
+ readonly lost: Promise<GPUDeviceLostInfo>;
4442
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
4443
+ onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
4444
+ /**
4445
+ * The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
4446
+ *
4447
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
4448
+ */
4449
+ readonly queue: GPUQueue;
4450
+ addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
4451
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
4452
+ removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
4453
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
4454
+ }
4455
+
4456
+ declare var GPUDevice: {
4457
+ prototype: GPUDevice;
4458
+ new(): GPUDevice;
4459
+ };
4460
+
4187
4461
  /**
4188
4462
  * 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.
4189
4463
  * Available only in secure contexts.
@@ -4348,6 +4622,50 @@ declare var GPUQuerySet: {
4348
4622
  new(): GPUQuerySet;
4349
4623
  };
4350
4624
 
4625
+ /**
4626
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
4627
+ * Available only in secure contexts.
4628
+ *
4629
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
4630
+ */
4631
+ interface GPUQueue extends GPUObjectBase {
4632
+ /**
4633
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
4634
+ *
4635
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
4636
+ */
4637
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
4638
+ /**
4639
+ * The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
4640
+ *
4641
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
4642
+ */
4643
+ onSubmittedWorkDone(): Promise<void>;
4644
+ /**
4645
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
4646
+ *
4647
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
4648
+ */
4649
+ submit(commandBuffers: GPUCommandBuffer[]): void;
4650
+ /**
4651
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
4652
+ *
4653
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
4654
+ */
4655
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
4656
+ /**
4657
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
4658
+ *
4659
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
4660
+ */
4661
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
4662
+ }
4663
+
4664
+ declare var GPUQueue: {
4665
+ prototype: GPUQueue;
4666
+ new(): GPUQueue;
4667
+ };
4668
+
4351
4669
  /**
4352
4670
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4353
4671
  * Available only in secure contexts.
@@ -12282,11 +12600,15 @@ type GLuint = number;
12282
12600
  type GLuint64 = number;
12283
12601
  type GPUBufferDynamicOffset = number;
12284
12602
  type GPUColor = number[] | GPUColorDict;
12603
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
12604
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
12285
12605
  type GPUFlagsConstant = number;
12286
12606
  type GPUIndex32 = number;
12287
12607
  type GPUIntegerCoordinate = number;
12288
12608
  type GPUIntegerCoordinateOut = number;
12289
12609
  type GPUMapModeFlags = number;
12610
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
12611
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
12290
12612
  type GPUSignedOffset32 = number;
12291
12613
  type GPUSize32 = number;
12292
12614
  type GPUSize32Out = number;
@@ -12302,7 +12624,7 @@ type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
12302
12624
  type Int32List = Int32Array<ArrayBufferLike> | GLint[];
12303
12625
  type MessageEventSource = MessagePort | ServiceWorker;
12304
12626
  type NamedCurve = string;
12305
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
12627
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
12306
12628
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
12307
12629
  type PerformanceEntryList = PerformanceEntry[];
12308
12630
  type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
@@ -12339,11 +12661,15 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
12339
12661
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
12340
12662
  type FontFaceSetLoadStatus = "loaded" | "loading";
12341
12663
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12664
+ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
12665
+ type GPUCanvasToneMappingMode = "extended" | "standard";
12342
12666
  type GPUCompilationMessageType = "error" | "info" | "warning";
12343
12667
  type GPUDeviceLostReason = "destroyed" | "unknown";
12344
12668
  type GPUIndexFormat = "uint16" | "uint32";
12669
+ type GPULoadOp = "clear" | "load";
12345
12670
  type GPUPipelineErrorReason = "internal" | "validation";
12346
12671
  type GPUQueryType = "occlusion" | "timestamp";
12672
+ type GPUStoreOp = "discard" | "store";
12347
12673
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12348
12674
  type GPUTextureDimension = "1d" | "2d" | "3d";
12349
12675
  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";
@@ -12470,6 +12796,48 @@ interface GPUBindingCommandsMixin {
12470
12796
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
12471
12797
  }
12472
12798
 
12799
+ interface GPUCommandEncoder {
12800
+ /**
12801
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
12802
+ *
12803
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
12804
+ */
12805
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
12806
+ /**
12807
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
12808
+ *
12809
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
12810
+ */
12811
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
12812
+ /**
12813
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
12814
+ *
12815
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
12816
+ */
12817
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
12818
+ }
12819
+
12820
+ interface GPUQueue {
12821
+ /**
12822
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
12823
+ *
12824
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
12825
+ */
12826
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
12827
+ /**
12828
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
12829
+ *
12830
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
12831
+ */
12832
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
12833
+ /**
12834
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
12835
+ *
12836
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
12837
+ */
12838
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
12839
+ }
12840
+
12473
12841
  interface GPURenderPassEncoder {
12474
12842
  /**
12475
12843
  * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.212",
3
+ "version": "0.0.214",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],