@types/web 0.0.328 → 0.0.330

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
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.328 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.328.
50
+ You can read what changed in version 0.0.330 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.330.
package/index.d.ts CHANGED
@@ -808,6 +808,36 @@ interface FullscreenOptions {
808
808
  navigationUI?: FullscreenNavigationUI;
809
809
  }
810
810
 
811
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
812
+ entries: GPUBindGroupEntry[];
813
+ layout: GPUBindGroupLayout;
814
+ }
815
+
816
+ interface GPUBindGroupEntry {
817
+ binding: GPUIndex32;
818
+ resource: GPUBindingResource;
819
+ }
820
+
821
+ interface GPUBufferBinding {
822
+ buffer: GPUBuffer;
823
+ offset?: GPUSize64;
824
+ size?: GPUSize64;
825
+ }
826
+
827
+ interface GPUCanvasConfiguration {
828
+ alphaMode?: GPUCanvasAlphaMode;
829
+ colorSpace?: PredefinedColorSpace;
830
+ device: GPUDevice;
831
+ format: GPUTextureFormat;
832
+ toneMapping?: GPUCanvasToneMapping;
833
+ usage?: GPUTextureUsageFlags;
834
+ viewFormats?: GPUTextureFormat[];
835
+ }
836
+
837
+ interface GPUCanvasToneMapping {
838
+ mode?: GPUCanvasToneMappingMode;
839
+ }
840
+
811
841
  interface GPUColorDict {
812
842
  a: number;
813
843
  b: number;
@@ -815,6 +845,19 @@ interface GPUColorDict {
815
845
  r: number;
816
846
  }
817
847
 
848
+ interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
849
+ }
850
+
851
+ interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
852
+ timestampWrites?: GPUComputePassTimestampWrites;
853
+ }
854
+
855
+ interface GPUComputePassTimestampWrites {
856
+ beginningOfPassWriteIndex?: GPUSize32;
857
+ endOfPassWriteIndex?: GPUSize32;
858
+ querySet: GPUQuerySet;
859
+ }
860
+
818
861
  interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
819
862
  colorSpace?: PredefinedColorSpace;
820
863
  premultipliedAlpha?: boolean;
@@ -832,6 +875,11 @@ interface GPUExtent3DDict {
832
875
  width: GPUIntegerCoordinate;
833
876
  }
834
877
 
878
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
879
+ colorSpace?: PredefinedColorSpace;
880
+ source: HTMLVideoElement | VideoFrame;
881
+ }
882
+
835
883
  interface GPUObjectDescriptorBase {
836
884
  label?: string;
837
885
  }
@@ -854,6 +902,45 @@ interface GPUPipelineErrorInit {
854
902
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
855
903
  }
856
904
 
905
+ interface GPURenderPassColorAttachment {
906
+ clearValue?: GPUColor;
907
+ depthSlice?: GPUIntegerCoordinate;
908
+ loadOp: GPULoadOp;
909
+ resolveTarget?: GPUTexture | GPUTextureView;
910
+ storeOp: GPUStoreOp;
911
+ view: GPUTexture | GPUTextureView;
912
+ }
913
+
914
+ interface GPURenderPassDepthStencilAttachment {
915
+ depthClearValue?: number;
916
+ depthLoadOp?: GPULoadOp;
917
+ depthReadOnly?: boolean;
918
+ depthStoreOp?: GPUStoreOp;
919
+ stencilClearValue?: GPUStencilValue;
920
+ stencilLoadOp?: GPULoadOp;
921
+ stencilReadOnly?: boolean;
922
+ stencilStoreOp?: GPUStoreOp;
923
+ view: GPUTexture | GPUTextureView;
924
+ }
925
+
926
+ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
927
+ colorAttachments: (GPURenderPassColorAttachment | null)[];
928
+ depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
929
+ maxDrawCount?: GPUSize64;
930
+ occlusionQuerySet?: GPUQuerySet;
931
+ timestampWrites?: GPURenderPassTimestampWrites;
932
+ }
933
+
934
+ interface GPURenderPassTimestampWrites {
935
+ beginningOfPassWriteIndex?: GPUSize32;
936
+ endOfPassWriteIndex?: GPUSize32;
937
+ querySet: GPUQuerySet;
938
+ }
939
+
940
+ interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
941
+ buffer: GPUBuffer;
942
+ }
943
+
857
944
  interface GPUTexelCopyBufferLayout {
858
945
  bytesPerRow?: GPUSize32;
859
946
  offset?: GPUSize64;
@@ -14954,6 +15041,50 @@ declare var GPUBuffer: {
14954
15041
  new(): GPUBuffer;
14955
15042
  };
14956
15043
 
15044
+ /**
15045
+ * 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".
15046
+ * Available only in secure contexts.
15047
+ *
15048
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
15049
+ */
15050
+ interface GPUCanvasContext {
15051
+ /**
15052
+ * The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
15053
+ *
15054
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
15055
+ */
15056
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas;
15057
+ /**
15058
+ * 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.
15059
+ *
15060
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
15061
+ */
15062
+ configure(configuration: GPUCanvasConfiguration): void;
15063
+ /**
15064
+ * The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
15065
+ *
15066
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
15067
+ */
15068
+ getConfiguration(): GPUCanvasConfiguration | null;
15069
+ /**
15070
+ * The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
15071
+ *
15072
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
15073
+ */
15074
+ getCurrentTexture(): GPUTexture;
15075
+ /**
15076
+ * 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.
15077
+ *
15078
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
15079
+ */
15080
+ unconfigure(): void;
15081
+ }
15082
+
15083
+ declare var GPUCanvasContext: {
15084
+ prototype: GPUCanvasContext;
15085
+ new(): GPUCanvasContext;
15086
+ };
15087
+
14957
15088
  /**
14958
15089
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
14959
15090
  * Available only in secure contexts.
@@ -14968,6 +15099,75 @@ declare var GPUCommandBuffer: {
14968
15099
  new(): GPUCommandBuffer;
14969
15100
  };
14970
15101
 
15102
+ /**
15103
+ * The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
15104
+ * Available only in secure contexts.
15105
+ *
15106
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
15107
+ */
15108
+ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
15109
+ /**
15110
+ * The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
15111
+ *
15112
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
15113
+ */
15114
+ beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
15115
+ /**
15116
+ * The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
15117
+ *
15118
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
15119
+ */
15120
+ beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
15121
+ /**
15122
+ * The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
15123
+ *
15124
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
15125
+ */
15126
+ clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
15127
+ /**
15128
+ * The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
15129
+ *
15130
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
15131
+ */
15132
+ copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
15133
+ copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
15134
+ /**
15135
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
15136
+ *
15137
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
15138
+ */
15139
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
15140
+ /**
15141
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
15142
+ *
15143
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
15144
+ */
15145
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
15146
+ /**
15147
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
15148
+ *
15149
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
15150
+ */
15151
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
15152
+ /**
15153
+ * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
15154
+ *
15155
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
15156
+ */
15157
+ finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
15158
+ /**
15159
+ * The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
15160
+ *
15161
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
15162
+ */
15163
+ resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
15164
+ }
15165
+
15166
+ declare var GPUCommandEncoder: {
15167
+ prototype: GPUCommandEncoder;
15168
+ new(): GPUCommandEncoder;
15169
+ };
15170
+
14971
15171
  /**
14972
15172
  * 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.
14973
15173
  * Available only in secure contexts.
@@ -15099,6 +15299,90 @@ interface GPUDebugCommandsMixin {
15099
15299
  pushDebugGroup(groupLabel: string): void;
15100
15300
  }
15101
15301
 
15302
+ interface GPUDeviceEventMap {
15303
+ "uncapturederror": GPUUncapturedErrorEvent;
15304
+ }
15305
+
15306
+ /**
15307
+ * 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.
15308
+ * Available only in secure contexts.
15309
+ *
15310
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
15311
+ */
15312
+ interface GPUDevice extends EventTarget, GPUObjectBase {
15313
+ /**
15314
+ * The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
15315
+ *
15316
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
15317
+ */
15318
+ readonly adapterInfo: GPUAdapterInfo;
15319
+ /**
15320
+ * 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.
15321
+ *
15322
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
15323
+ */
15324
+ readonly features: GPUSupportedFeatures;
15325
+ /**
15326
+ * 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.
15327
+ *
15328
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
15329
+ */
15330
+ readonly limits: GPUSupportedLimits;
15331
+ /**
15332
+ * 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.
15333
+ *
15334
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
15335
+ */
15336
+ readonly lost: Promise<GPUDeviceLostInfo>;
15337
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
15338
+ onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
15339
+ /**
15340
+ * The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
15341
+ *
15342
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
15343
+ */
15344
+ readonly queue: GPUQueue;
15345
+ /**
15346
+ * The **`createBindGroup()`** method of the GPUDevice interface creates a GPUBindGroup based on a GPUBindGroupLayout that defines a set of resources to be bound together in a group and how those resources are used in shader stages.
15347
+ *
15348
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
15349
+ */
15350
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
15351
+ /**
15352
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
15353
+ *
15354
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
15355
+ */
15356
+ destroy(): void;
15357
+ /**
15358
+ * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.
15359
+ *
15360
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
15361
+ */
15362
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
15363
+ /**
15364
+ * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.
15365
+ *
15366
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
15367
+ */
15368
+ popErrorScope(): Promise<GPUError | null>;
15369
+ /**
15370
+ * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
15371
+ *
15372
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
15373
+ */
15374
+ pushErrorScope(filter: GPUErrorFilter): void;
15375
+ addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15376
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15377
+ removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
15378
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
15379
+ }
15380
+
15381
+ declare var GPUDevice: {
15382
+ prototype: GPUDevice;
15383
+ new(): GPUDevice;
15384
+ };
15385
+
15102
15386
  /**
15103
15387
  * 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.
15104
15388
  * Available only in secure contexts.
@@ -28090,6 +28374,12 @@ declare var PushManager: {
28090
28374
  readonly supportedContentEncodings: ReadonlyArray<string>;
28091
28375
  };
28092
28376
 
28377
+ /** Available only in secure contexts. */
28378
+ interface PushManagerAttribute {
28379
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
28380
+ readonly pushManager: PushManager;
28381
+ }
28382
+
28093
28383
  /**
28094
28384
  * The **`PushSubscription`** interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. This information must be passed to the application server, using any desired application-specific method.
28095
28385
  * Available only in secure contexts.
@@ -34508,7 +34798,7 @@ interface ServiceWorkerRegistrationEventMap {
34508
34798
  *
34509
34799
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
34510
34800
  */
34511
- interface ServiceWorkerRegistration extends EventTarget {
34801
+ interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
34512
34802
  /**
34513
34803
  * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
34514
34804
  *
@@ -43498,6 +43788,7 @@ type GLsizei = number;
43498
43788
  type GLsizeiptr = number;
43499
43789
  type GLuint = number;
43500
43790
  type GLuint64 = number;
43791
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
43501
43792
  type GPUBufferDynamicOffset = number;
43502
43793
  type GPUColor = number[] | GPUColorDict;
43503
43794
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
@@ -43530,7 +43821,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
43530
43821
  type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
43531
43822
  type MutationRecordType = "attributes" | "characterData" | "childList";
43532
43823
  type NamedCurve = string;
43533
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
43824
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
43534
43825
  type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
43535
43826
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
43536
43827
  type OptionalPostfixToken<T extends string> = ` ${T}` | "";
@@ -43542,7 +43833,7 @@ type RTCRtpSenderTransform = RTCRtpScriptTransform;
43542
43833
  type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
43543
43834
  type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
43544
43835
  type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
43545
- type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
43836
+ type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
43546
43837
  type ReportList = Report[];
43547
43838
  type RequestInfo = Request | string;
43548
43839
  type SanitizerAttribute = string | SanitizerAttributeNamespace;
@@ -43623,11 +43914,16 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
43623
43914
  type FontFaceSetLoadStatus = "loaded" | "loading";
43624
43915
  type FullscreenNavigationUI = "auto" | "hide" | "show";
43625
43916
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
43917
+ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
43918
+ type GPUCanvasToneMappingMode = "extended" | "standard";
43626
43919
  type GPUCompilationMessageType = "error" | "info" | "warning";
43627
43920
  type GPUDeviceLostReason = "destroyed" | "unknown";
43921
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
43628
43922
  type GPUIndexFormat = "uint16" | "uint32";
43923
+ type GPULoadOp = "clear" | "load";
43629
43924
  type GPUPipelineErrorReason = "internal" | "validation";
43630
43925
  type GPUQueryType = "occlusion" | "timestamp";
43926
+ type GPUStoreOp = "discard" | "store";
43631
43927
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43632
43928
  type GPUTextureDimension = "1d" | "2d" | "3d";
43633
43929
  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";
@@ -43921,6 +44217,27 @@ interface GPUBindingCommandsMixin {
43921
44217
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
43922
44218
  }
43923
44219
 
44220
+ interface GPUCommandEncoder {
44221
+ /**
44222
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
44223
+ *
44224
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
44225
+ */
44226
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
44227
+ /**
44228
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
44229
+ *
44230
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
44231
+ */
44232
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
44233
+ /**
44234
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
44235
+ *
44236
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
44237
+ */
44238
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
44239
+ }
44240
+
43924
44241
  interface GPUQueue {
43925
44242
  /**
43926
44243
  * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.328",
3
+ "version": "0.0.330",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],