@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.5/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;
@@ -14899,6 +15006,50 @@ declare var GPUBuffer: {
14899
15006
  new(): GPUBuffer;
14900
15007
  };
14901
15008
 
15009
+ /**
15010
+ * 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".
15011
+ * Available only in secure contexts.
15012
+ *
15013
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
15014
+ */
15015
+ interface GPUCanvasContext {
15016
+ /**
15017
+ * The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
15018
+ *
15019
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
15020
+ */
15021
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas;
15022
+ /**
15023
+ * 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.
15024
+ *
15025
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
15026
+ */
15027
+ configure(configuration: GPUCanvasConfiguration): void;
15028
+ /**
15029
+ * The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
15030
+ *
15031
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
15032
+ */
15033
+ getConfiguration(): GPUCanvasConfiguration | null;
15034
+ /**
15035
+ * The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
15036
+ *
15037
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
15038
+ */
15039
+ getCurrentTexture(): GPUTexture;
15040
+ /**
15041
+ * 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.
15042
+ *
15043
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
15044
+ */
15045
+ unconfigure(): void;
15046
+ }
15047
+
15048
+ declare var GPUCanvasContext: {
15049
+ prototype: GPUCanvasContext;
15050
+ new(): GPUCanvasContext;
15051
+ };
15052
+
14902
15053
  /**
14903
15054
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
14904
15055
  * Available only in secure contexts.
@@ -14913,6 +15064,75 @@ declare var GPUCommandBuffer: {
14913
15064
  new(): GPUCommandBuffer;
14914
15065
  };
14915
15066
 
15067
+ /**
15068
+ * The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
15069
+ * Available only in secure contexts.
15070
+ *
15071
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
15072
+ */
15073
+ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
15074
+ /**
15075
+ * The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
15076
+ *
15077
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
15078
+ */
15079
+ beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
15080
+ /**
15081
+ * The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
15082
+ *
15083
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
15084
+ */
15085
+ beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
15086
+ /**
15087
+ * The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
15088
+ *
15089
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
15090
+ */
15091
+ clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
15092
+ /**
15093
+ * The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
15094
+ *
15095
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
15096
+ */
15097
+ copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
15098
+ copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
15099
+ /**
15100
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
15101
+ *
15102
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
15103
+ */
15104
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
15105
+ /**
15106
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
15107
+ *
15108
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
15109
+ */
15110
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
15111
+ /**
15112
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
15113
+ *
15114
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
15115
+ */
15116
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
15117
+ /**
15118
+ * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
15119
+ *
15120
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
15121
+ */
15122
+ finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
15123
+ /**
15124
+ * The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
15125
+ *
15126
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
15127
+ */
15128
+ resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
15129
+ }
15130
+
15131
+ declare var GPUCommandEncoder: {
15132
+ prototype: GPUCommandEncoder;
15133
+ new(): GPUCommandEncoder;
15134
+ };
15135
+
14916
15136
  /**
14917
15137
  * 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.
14918
15138
  * Available only in secure contexts.
@@ -15044,6 +15264,60 @@ interface GPUDebugCommandsMixin {
15044
15264
  pushDebugGroup(groupLabel: string): void;
15045
15265
  }
15046
15266
 
15267
+ interface GPUDeviceEventMap {
15268
+ "uncapturederror": GPUUncapturedErrorEvent;
15269
+ }
15270
+
15271
+ /**
15272
+ * 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.
15273
+ * Available only in secure contexts.
15274
+ *
15275
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
15276
+ */
15277
+ interface GPUDevice extends EventTarget, GPUObjectBase {
15278
+ /**
15279
+ * The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
15280
+ *
15281
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
15282
+ */
15283
+ readonly adapterInfo: GPUAdapterInfo;
15284
+ /**
15285
+ * 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.
15286
+ *
15287
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
15288
+ */
15289
+ readonly features: GPUSupportedFeatures;
15290
+ /**
15291
+ * 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.
15292
+ *
15293
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
15294
+ */
15295
+ readonly limits: GPUSupportedLimits;
15296
+ /**
15297
+ * 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.
15298
+ *
15299
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
15300
+ */
15301
+ readonly lost: Promise<GPUDeviceLostInfo>;
15302
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
15303
+ onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
15304
+ /**
15305
+ * The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
15306
+ *
15307
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
15308
+ */
15309
+ readonly queue: GPUQueue;
15310
+ addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15311
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15312
+ removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
15313
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
15314
+ }
15315
+
15316
+ declare var GPUDevice: {
15317
+ prototype: GPUDevice;
15318
+ new(): GPUDevice;
15319
+ };
15320
+
15047
15321
  /**
15048
15322
  * 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.
15049
15323
  * Available only in secure contexts.
@@ -15208,6 +15482,50 @@ declare var GPUQuerySet: {
15208
15482
  new(): GPUQuerySet;
15209
15483
  };
15210
15484
 
15485
+ /**
15486
+ * The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
15487
+ * Available only in secure contexts.
15488
+ *
15489
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
15490
+ */
15491
+ interface GPUQueue extends GPUObjectBase {
15492
+ /**
15493
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
15494
+ *
15495
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
15496
+ */
15497
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
15498
+ /**
15499
+ * 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.
15500
+ *
15501
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
15502
+ */
15503
+ onSubmittedWorkDone(): Promise<void>;
15504
+ /**
15505
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
15506
+ *
15507
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
15508
+ */
15509
+ submit(commandBuffers: GPUCommandBuffer[]): void;
15510
+ /**
15511
+ * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
15512
+ *
15513
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
15514
+ */
15515
+ writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
15516
+ /**
15517
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
15518
+ *
15519
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
15520
+ */
15521
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
15522
+ }
15523
+
15524
+ declare var GPUQueue: {
15525
+ prototype: GPUQueue;
15526
+ new(): GPUQueue;
15527
+ };
15528
+
15211
15529
  /**
15212
15530
  * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15213
15531
  * Available only in secure contexts.
@@ -43389,11 +43707,15 @@ type GLuint = number;
43389
43707
  type GLuint64 = number;
43390
43708
  type GPUBufferDynamicOffset = number;
43391
43709
  type GPUColor = number[] | GPUColorDict;
43710
+ type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
43711
+ type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
43392
43712
  type GPUFlagsConstant = number;
43393
43713
  type GPUIndex32 = number;
43394
43714
  type GPUIntegerCoordinate = number;
43395
43715
  type GPUIntegerCoordinateOut = number;
43396
43716
  type GPUMapModeFlags = number;
43717
+ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
43718
+ type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
43397
43719
  type GPUSignedOffset32 = number;
43398
43720
  type GPUSize32 = number;
43399
43721
  type GPUSize32Out = number;
@@ -43415,7 +43737,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
43415
43737
  type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
43416
43738
  type MutationRecordType = "attributes" | "characterData" | "childList";
43417
43739
  type NamedCurve = string;
43418
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
43740
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
43419
43741
  type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
43420
43742
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
43421
43743
  type OptionalPostfixToken<T extends string> = ` ${T}` | "";
@@ -43427,7 +43749,7 @@ type RTCRtpSenderTransform = RTCRtpScriptTransform;
43427
43749
  type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
43428
43750
  type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
43429
43751
  type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
43430
- type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
43752
+ type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
43431
43753
  type ReportList = Report[];
43432
43754
  type RequestInfo = Request | string;
43433
43755
  type SanitizerAttribute = string | SanitizerAttributeNamespace;
@@ -43508,11 +43830,15 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
43508
43830
  type FontFaceSetLoadStatus = "loaded" | "loading";
43509
43831
  type FullscreenNavigationUI = "auto" | "hide" | "show";
43510
43832
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
43833
+ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
43834
+ type GPUCanvasToneMappingMode = "extended" | "standard";
43511
43835
  type GPUCompilationMessageType = "error" | "info" | "warning";
43512
43836
  type GPUDeviceLostReason = "destroyed" | "unknown";
43513
43837
  type GPUIndexFormat = "uint16" | "uint32";
43838
+ type GPULoadOp = "clear" | "load";
43514
43839
  type GPUPipelineErrorReason = "internal" | "validation";
43515
43840
  type GPUQueryType = "occlusion" | "timestamp";
43841
+ type GPUStoreOp = "discard" | "store";
43516
43842
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43517
43843
  type GPUTextureDimension = "1d" | "2d" | "3d";
43518
43844
  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";
@@ -143,6 +143,48 @@ interface GPUBindingCommandsMixin {
143
143
  setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
144
144
  }
145
145
 
146
+ interface GPUCommandEncoder {
147
+ /**
148
+ * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
149
+ *
150
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
151
+ */
152
+ copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
153
+ /**
154
+ * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
155
+ *
156
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
157
+ */
158
+ copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
159
+ /**
160
+ * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
161
+ *
162
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
163
+ */
164
+ copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
165
+ }
166
+
167
+ interface GPUQueue {
168
+ /**
169
+ * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
170
+ *
171
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
172
+ */
173
+ copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
174
+ /**
175
+ * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
176
+ *
177
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
178
+ */
179
+ submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
180
+ /**
181
+ * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
182
+ *
183
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
184
+ */
185
+ writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
186
+ }
187
+
146
188
  interface GPURenderPassEncoder {
147
189
  /**
148
190
  * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.