@types/web 0.0.327 → 0.0.329

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
@@ -805,6 +805,20 @@ interface FullscreenOptions {
805
805
  navigationUI?: FullscreenNavigationUI;
806
806
  }
807
807
 
808
+ interface GPUCanvasConfiguration {
809
+ alphaMode?: GPUCanvasAlphaMode;
810
+ colorSpace?: PredefinedColorSpace;
811
+ device: GPUDevice;
812
+ format: GPUTextureFormat;
813
+ toneMapping?: GPUCanvasToneMapping;
814
+ usage?: GPUTextureUsageFlags;
815
+ viewFormats?: GPUTextureFormat[];
816
+ }
817
+
818
+ interface GPUCanvasToneMapping {
819
+ mode?: GPUCanvasToneMappingMode;
820
+ }
821
+
808
822
  interface GPUColorDict {
809
823
  a: number;
810
824
  b: number;
@@ -812,10 +826,51 @@ interface GPUColorDict {
812
826
  r: number;
813
827
  }
814
828
 
829
+ interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
830
+ }
831
+
832
+ interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
833
+ timestampWrites?: GPUComputePassTimestampWrites;
834
+ }
835
+
836
+ interface GPUComputePassTimestampWrites {
837
+ beginningOfPassWriteIndex?: GPUSize32;
838
+ endOfPassWriteIndex?: GPUSize32;
839
+ querySet: GPUQuerySet;
840
+ }
841
+
842
+ interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
843
+ colorSpace?: PredefinedColorSpace;
844
+ premultipliedAlpha?: boolean;
845
+ }
846
+
847
+ interface GPUCopyExternalImageSourceInfo {
848
+ flipY?: boolean;
849
+ origin?: GPUOrigin2D;
850
+ source: GPUCopyExternalImageSource;
851
+ }
852
+
853
+ interface GPUExtent3DDict {
854
+ depthOrArrayLayers?: GPUIntegerCoordinate;
855
+ height?: GPUIntegerCoordinate;
856
+ width: GPUIntegerCoordinate;
857
+ }
858
+
815
859
  interface GPUObjectDescriptorBase {
816
860
  label?: string;
817
861
  }
818
862
 
863
+ interface GPUOrigin2DDict {
864
+ x?: GPUIntegerCoordinate;
865
+ y?: GPUIntegerCoordinate;
866
+ }
867
+
868
+ interface GPUOrigin3DDict {
869
+ x?: GPUIntegerCoordinate;
870
+ y?: GPUIntegerCoordinate;
871
+ z?: GPUIntegerCoordinate;
872
+ }
873
+
819
874
  interface GPUPipelineErrorInit {
820
875
  reason: GPUPipelineErrorReason;
821
876
  }
@@ -823,6 +878,58 @@ interface GPUPipelineErrorInit {
823
878
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
824
879
  }
825
880
 
881
+ interface GPURenderPassColorAttachment {
882
+ clearValue?: GPUColor;
883
+ depthSlice?: GPUIntegerCoordinate;
884
+ loadOp: GPULoadOp;
885
+ resolveTarget?: GPUTexture | GPUTextureView;
886
+ storeOp: GPUStoreOp;
887
+ view: GPUTexture | GPUTextureView;
888
+ }
889
+
890
+ interface GPURenderPassDepthStencilAttachment {
891
+ depthClearValue?: number;
892
+ depthLoadOp?: GPULoadOp;
893
+ depthReadOnly?: boolean;
894
+ depthStoreOp?: GPUStoreOp;
895
+ stencilClearValue?: GPUStencilValue;
896
+ stencilLoadOp?: GPULoadOp;
897
+ stencilReadOnly?: boolean;
898
+ stencilStoreOp?: GPUStoreOp;
899
+ view: GPUTexture | GPUTextureView;
900
+ }
901
+
902
+ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
903
+ colorAttachments: (GPURenderPassColorAttachment | null)[];
904
+ depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
905
+ maxDrawCount?: GPUSize64;
906
+ occlusionQuerySet?: GPUQuerySet;
907
+ timestampWrites?: GPURenderPassTimestampWrites;
908
+ }
909
+
910
+ interface GPURenderPassTimestampWrites {
911
+ beginningOfPassWriteIndex?: GPUSize32;
912
+ endOfPassWriteIndex?: GPUSize32;
913
+ querySet: GPUQuerySet;
914
+ }
915
+
916
+ interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
917
+ buffer: GPUBuffer;
918
+ }
919
+
920
+ interface GPUTexelCopyBufferLayout {
921
+ bytesPerRow?: GPUSize32;
922
+ offset?: GPUSize64;
923
+ rowsPerImage?: GPUSize32;
924
+ }
925
+
926
+ interface GPUTexelCopyTextureInfo {
927
+ aspect?: GPUTextureAspect;
928
+ mipLevel?: GPUIntegerCoordinate;
929
+ origin?: GPUOrigin3D;
930
+ texture: GPUTexture;
931
+ }
932
+
826
933
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
827
934
  arrayLayerCount?: GPUIntegerCoordinate;
828
935
  aspect?: GPUTextureAspect;
@@ -14910,6 +15017,50 @@ declare var GPUBuffer: {
14910
15017
  new(): GPUBuffer;
14911
15018
  };
14912
15019
 
15020
+ /**
15021
+ * 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".
15022
+ * Available only in secure contexts.
15023
+ *
15024
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
15025
+ */
15026
+ interface GPUCanvasContext {
15027
+ /**
15028
+ * The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
15029
+ *
15030
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
15031
+ */
15032
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas;
15033
+ /**
15034
+ * 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.
15035
+ *
15036
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
15037
+ */
15038
+ configure(configuration: GPUCanvasConfiguration): void;
15039
+ /**
15040
+ * The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
15041
+ *
15042
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
15043
+ */
15044
+ getConfiguration(): GPUCanvasConfiguration | null;
15045
+ /**
15046
+ * The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
15047
+ *
15048
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
15049
+ */
15050
+ getCurrentTexture(): GPUTexture;
15051
+ /**
15052
+ * 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.
15053
+ *
15054
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
15055
+ */
15056
+ unconfigure(): void;
15057
+ }
15058
+
15059
+ declare var GPUCanvasContext: {
15060
+ prototype: GPUCanvasContext;
15061
+ new(): GPUCanvasContext;
15062
+ };
15063
+
14913
15064
  /**
14914
15065
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
14915
15066
  * Available only in secure contexts.
@@ -14924,6 +15075,75 @@ declare var GPUCommandBuffer: {
14924
15075
  new(): GPUCommandBuffer;
14925
15076
  };
14926
15077
 
15078
+ /**
15079
+ * The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
15080
+ * Available only in secure contexts.
15081
+ *
15082
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
15083
+ */
15084
+ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
15085
+ /**
15086
+ * The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
15087
+ *
15088
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
15089
+ */
15090
+ beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
15091
+ /**
15092
+ * The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
15093
+ *
15094
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
15095
+ */
15096
+ beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
15097
+ /**
15098
+ * The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
15099
+ *
15100
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
15101
+ */
15102
+ clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
15103
+ /**
15104
+ * The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
15105
+ *
15106
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
15107
+ */
15108
+ copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
15109
+ copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
15110
+ /**
15111
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
15112
+ *
15113
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
15114
+ */
15115
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
15116
+ /**
15117
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
15118
+ *
15119
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
15120
+ */
15121
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
15122
+ /**
15123
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
15124
+ *
15125
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
15126
+ */
15127
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
15128
+ /**
15129
+ * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
15130
+ *
15131
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
15132
+ */
15133
+ finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
15134
+ /**
15135
+ * The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
15136
+ *
15137
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
15138
+ */
15139
+ resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
15140
+ }
15141
+
15142
+ declare var GPUCommandEncoder: {
15143
+ prototype: GPUCommandEncoder;
15144
+ new(): GPUCommandEncoder;
15145
+ };
15146
+
14927
15147
  /**
14928
15148
  * 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.
14929
15149
  * Available only in secure contexts.
@@ -15055,6 +15275,60 @@ interface GPUDebugCommandsMixin {
15055
15275
  pushDebugGroup(groupLabel: string): void;
15056
15276
  }
15057
15277
 
15278
+ interface GPUDeviceEventMap {
15279
+ "uncapturederror": GPUUncapturedErrorEvent;
15280
+ }
15281
+
15282
+ /**
15283
+ * 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.
15284
+ * Available only in secure contexts.
15285
+ *
15286
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
15287
+ */
15288
+ interface GPUDevice extends EventTarget, GPUObjectBase {
15289
+ /**
15290
+ * The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
15291
+ *
15292
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
15293
+ */
15294
+ readonly adapterInfo: GPUAdapterInfo;
15295
+ /**
15296
+ * 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.
15297
+ *
15298
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
15299
+ */
15300
+ readonly features: GPUSupportedFeatures;
15301
+ /**
15302
+ * 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.
15303
+ *
15304
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
15305
+ */
15306
+ readonly limits: GPUSupportedLimits;
15307
+ /**
15308
+ * 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.
15309
+ *
15310
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
15311
+ */
15312
+ readonly lost: Promise<GPUDeviceLostInfo>;
15313
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
15314
+ onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
15315
+ /**
15316
+ * The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
15317
+ *
15318
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
15319
+ */
15320
+ readonly queue: GPUQueue;
15321
+ addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15322
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15323
+ removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
15324
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
15325
+ }
15326
+
15327
+ declare var GPUDevice: {
15328
+ prototype: GPUDevice;
15329
+ new(): GPUDevice;
15330
+ };
15331
+
15058
15332
  /**
15059
15333
  * 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.
15060
15334
  * Available only in secure contexts.
@@ -15219,6 +15493,50 @@ declare var GPUQuerySet: {
15219
15493
  new(): GPUQuerySet;
15220
15494
  };
15221
15495
 
15496
+ /**
15497
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
15498
+ * Available only in secure contexts.
15499
+ *
15500
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
15501
+ */
15502
+ interface GPUQueue extends GPUObjectBase {
15503
+ /**
15504
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
15505
+ *
15506
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
15507
+ */
15508
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
15509
+ /**
15510
+ * 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.
15511
+ *
15512
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
15513
+ */
15514
+ onSubmittedWorkDone(): Promise<void>;
15515
+ /**
15516
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
15517
+ *
15518
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
15519
+ */
15520
+ submit(commandBuffers: GPUCommandBuffer[]): void;
15521
+ /**
15522
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
15523
+ *
15524
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
15525
+ */
15526
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
15527
+ /**
15528
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
15529
+ *
15530
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
15531
+ */
15532
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
15533
+ }
15534
+
15535
+ declare var GPUQueue: {
15536
+ prototype: GPUQueue;
15537
+ new(): GPUQueue;
15538
+ };
15539
+
15222
15540
  /**
15223
15541
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15224
15542
  * Available only in secure contexts.
@@ -43412,11 +43730,15 @@ type GLuint = number;
43412
43730
  type GLuint64 = number;
43413
43731
  type GPUBufferDynamicOffset = number;
43414
43732
  type GPUColor = number[] | GPUColorDict;
43733
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
43734
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
43415
43735
  type GPUFlagsConstant = number;
43416
43736
  type GPUIndex32 = number;
43417
43737
  type GPUIntegerCoordinate = number;
43418
43738
  type GPUIntegerCoordinateOut = number;
43419
43739
  type GPUMapModeFlags = number;
43740
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
43741
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
43420
43742
  type GPUSignedOffset32 = number;
43421
43743
  type GPUSize32 = number;
43422
43744
  type GPUSize32Out = number;
@@ -43438,7 +43760,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
43438
43760
  type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
43439
43761
  type MutationRecordType = "attributes" | "characterData" | "childList";
43440
43762
  type NamedCurve = string;
43441
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
43763
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
43442
43764
  type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
43443
43765
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
43444
43766
  type OptionalPostfixToken<T extends string> = ` ${T}` | "";
@@ -43450,7 +43772,7 @@ type RTCRtpSenderTransform = RTCRtpScriptTransform;
43450
43772
  type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
43451
43773
  type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
43452
43774
  type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
43453
- type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
43775
+ type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
43454
43776
  type ReportList = Report[];
43455
43777
  type RequestInfo = Request | string;
43456
43778
  type SanitizerAttribute = string | SanitizerAttributeNamespace;
@@ -43531,11 +43853,15 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
43531
43853
  type FontFaceSetLoadStatus = "loaded" | "loading";
43532
43854
  type FullscreenNavigationUI = "auto" | "hide" | "show";
43533
43855
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
43856
+ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
43857
+ type GPUCanvasToneMappingMode = "extended" | "standard";
43534
43858
  type GPUCompilationMessageType = "error" | "info" | "warning";
43535
43859
  type GPUDeviceLostReason = "destroyed" | "unknown";
43536
43860
  type GPUIndexFormat = "uint16" | "uint32";
43861
+ type GPULoadOp = "clear" | "load";
43537
43862
  type GPUPipelineErrorReason = "internal" | "validation";
43538
43863
  type GPUQueryType = "occlusion" | "timestamp";
43864
+ type GPUStoreOp = "discard" | "store";
43539
43865
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43540
43866
  type GPUTextureDimension = "1d" | "2d" | "3d";
43541
43867
  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";
@@ -147,6 +147,48 @@ interface GPUBindingCommandsMixin {
147
147
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
148
148
  }
149
149
 
150
+ interface GPUCommandEncoder {
151
+ /**
152
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
153
+ *
154
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
155
+ */
156
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
157
+ /**
158
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
159
+ *
160
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
161
+ */
162
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
163
+ /**
164
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
165
+ *
166
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
167
+ */
168
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
169
+ }
170
+
171
+ interface GPUQueue {
172
+ /**
173
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
174
+ *
175
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
176
+ */
177
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
178
+ /**
179
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
180
+ *
181
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
182
+ */
183
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
184
+ /**
185
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
186
+ *
187
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
188
+ */
189
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
190
+ }
191
+
150
192
  interface GPURenderPassEncoder {
151
193
  /**
152
194
  * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.