@types/web 0.0.315 → 0.0.317

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,10 +805,29 @@ interface FullscreenOptions {
805
805
  navigationUI?: FullscreenNavigationUI;
806
806
  }
807
807
 
808
+ interface GPUObjectDescriptorBase {
809
+ label?: string;
810
+ }
811
+
808
812
  interface GPUPipelineErrorInit {
809
813
  reason: GPUPipelineErrorReason;
810
814
  }
811
815
 
816
+ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
817
+ arrayLayerCount?: GPUIntegerCoordinate;
818
+ aspect?: GPUTextureAspect;
819
+ baseArrayLayer?: GPUIntegerCoordinate;
820
+ baseMipLevel?: GPUIntegerCoordinate;
821
+ dimension?: GPUTextureViewDimension;
822
+ format?: GPUTextureFormat;
823
+ mipLevelCount?: GPUIntegerCoordinate;
824
+ usage?: GPUTextureUsageFlags;
825
+ }
826
+
827
+ interface GPUUncapturedErrorEventInit extends EventInit {
828
+ error: GPUError;
829
+ }
830
+
812
831
  interface GainOptions extends AudioNodeOptions {
813
832
  gain?: number;
814
833
  }
@@ -6349,7 +6368,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6349
6368
  */
6350
6369
  backfaceVisibility: string;
6351
6370
  /**
6352
- * The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method. Component properties not set in the background shorthand property value declaration are set to their default values.
6371
+ * The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin, size, and repeat method.
6353
6372
  *
6354
6373
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background)
6355
6374
  */
@@ -12550,6 +12569,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
12550
12569
  createEvent(eventInterface: "FocusEvent"): FocusEvent;
12551
12570
  createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
12552
12571
  createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
12572
+ createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent;
12553
12573
  createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
12554
12574
  createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
12555
12575
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
@@ -14689,6 +14709,214 @@ declare var FragmentDirective: {
14689
14709
  new(): FragmentDirective;
14690
14710
  };
14691
14711
 
14712
+ /**
14713
+ * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
14714
+ * Available only in secure contexts.
14715
+ *
14716
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
14717
+ */
14718
+ interface GPUBindGroup extends GPUObjectBase {
14719
+ }
14720
+
14721
+ declare var GPUBindGroup: {
14722
+ prototype: GPUBindGroup;
14723
+ new(): GPUBindGroup;
14724
+ };
14725
+
14726
+ /**
14727
+ * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups.
14728
+ * Available only in secure contexts.
14729
+ *
14730
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
14731
+ */
14732
+ interface GPUBindGroupLayout extends GPUObjectBase {
14733
+ }
14734
+
14735
+ declare var GPUBindGroupLayout: {
14736
+ prototype: GPUBindGroupLayout;
14737
+ new(): GPUBindGroupLayout;
14738
+ };
14739
+
14740
+ /**
14741
+ * The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
14742
+ * Available only in secure contexts.
14743
+ *
14744
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
14745
+ */
14746
+ interface GPUBuffer extends GPUObjectBase {
14747
+ /**
14748
+ * The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
14749
+ *
14750
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
14751
+ */
14752
+ readonly mapState: GPUBufferMapState;
14753
+ /**
14754
+ * The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
14755
+ *
14756
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
14757
+ */
14758
+ readonly size: GPUSize64Out;
14759
+ /**
14760
+ * The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
14761
+ *
14762
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
14763
+ */
14764
+ readonly usage: GPUFlagsConstant;
14765
+ /**
14766
+ * The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
14767
+ *
14768
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
14769
+ */
14770
+ destroy(): void;
14771
+ /**
14772
+ * The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
14773
+ *
14774
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
14775
+ */
14776
+ getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
14777
+ /**
14778
+ * The **`mapAsync()`** method of the GPUBuffer interface maps the specified range of the GPUBuffer. It returns a Promise that resolves when the GPUBuffer's content is ready to be accessed. While the GPUBuffer is mapped it cannot be used in any GPU commands.
14779
+ *
14780
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
14781
+ */
14782
+ mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
14783
+ /**
14784
+ * The **`unmap()`** method of the GPUBuffer interface unmaps the mapped range of the GPUBuffer, making its contents available for use by the GPU again after it has previously been mapped with GPUBuffer.mapAsync() (the GPU cannot access a mapped GPUBuffer).
14785
+ *
14786
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
14787
+ */
14788
+ unmap(): void;
14789
+ }
14790
+
14791
+ declare var GPUBuffer: {
14792
+ prototype: GPUBuffer;
14793
+ new(): GPUBuffer;
14794
+ };
14795
+
14796
+ /**
14797
+ * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
14798
+ * Available only in secure contexts.
14799
+ *
14800
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
14801
+ */
14802
+ interface GPUCommandBuffer extends GPUObjectBase {
14803
+ }
14804
+
14805
+ declare var GPUCommandBuffer: {
14806
+ prototype: GPUCommandBuffer;
14807
+ new(): GPUCommandBuffer;
14808
+ };
14809
+
14810
+ /**
14811
+ * 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.
14812
+ * Available only in secure contexts.
14813
+ *
14814
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
14815
+ */
14816
+ interface GPUCompilationInfo {
14817
+ /**
14818
+ * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors.
14819
+ *
14820
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
14821
+ */
14822
+ readonly messages: ReadonlyArray<GPUCompilationMessage>;
14823
+ }
14824
+
14825
+ declare var GPUCompilationInfo: {
14826
+ prototype: GPUCompilationInfo;
14827
+ new(): GPUCompilationInfo;
14828
+ };
14829
+
14830
+ /**
14831
+ * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
14832
+ * Available only in secure contexts.
14833
+ *
14834
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
14835
+ */
14836
+ interface GPUCompilationMessage {
14837
+ /**
14838
+ * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
14839
+ *
14840
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
14841
+ */
14842
+ readonly length: number;
14843
+ /**
14844
+ * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to.
14845
+ *
14846
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
14847
+ */
14848
+ readonly lineNum: number;
14849
+ /**
14850
+ * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring.
14851
+ *
14852
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
14853
+ */
14854
+ readonly linePos: number;
14855
+ /**
14856
+ * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
14857
+ *
14858
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
14859
+ */
14860
+ readonly message: string;
14861
+ /**
14862
+ * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to.
14863
+ *
14864
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
14865
+ */
14866
+ readonly offset: number;
14867
+ /**
14868
+ * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level.
14869
+ *
14870
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
14871
+ */
14872
+ readonly type: GPUCompilationMessageType;
14873
+ }
14874
+
14875
+ declare var GPUCompilationMessage: {
14876
+ prototype: GPUCompilationMessage;
14877
+ new(): GPUCompilationMessage;
14878
+ };
14879
+
14880
+ /**
14881
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
14882
+ * Available only in secure contexts.
14883
+ *
14884
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
14885
+ */
14886
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
14887
+ }
14888
+
14889
+ declare var GPUComputePipeline: {
14890
+ prototype: GPUComputePipeline;
14891
+ new(): GPUComputePipeline;
14892
+ };
14893
+
14894
+ /**
14895
+ * 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.
14896
+ * Available only in secure contexts.
14897
+ *
14898
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
14899
+ */
14900
+ interface GPUDeviceLostInfo {
14901
+ /**
14902
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
14903
+ *
14904
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
14905
+ */
14906
+ readonly message: string;
14907
+ /**
14908
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
14909
+ *
14910
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
14911
+ */
14912
+ readonly reason: GPUDeviceLostReason;
14913
+ }
14914
+
14915
+ declare var GPUDeviceLostInfo: {
14916
+ prototype: GPUDeviceLostInfo;
14917
+ new(): GPUDeviceLostInfo;
14918
+ };
14919
+
14692
14920
  /**
14693
14921
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
14694
14922
  * Available only in secure contexts.
@@ -14709,6 +14937,58 @@ declare var GPUError: {
14709
14937
  new(): GPUError;
14710
14938
  };
14711
14939
 
14940
+ /**
14941
+ * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations.
14942
+ * Available only in secure contexts.
14943
+ *
14944
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
14945
+ */
14946
+ interface GPUExternalTexture extends GPUObjectBase {
14947
+ }
14948
+
14949
+ declare var GPUExternalTexture: {
14950
+ prototype: GPUExternalTexture;
14951
+ new(): GPUExternalTexture;
14952
+ };
14953
+
14954
+ /**
14955
+ * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied.
14956
+ * Available only in secure contexts.
14957
+ *
14958
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
14959
+ */
14960
+ interface GPUInternalError extends GPUError {
14961
+ }
14962
+
14963
+ declare var GPUInternalError: {
14964
+ prototype: GPUInternalError;
14965
+ new(message: string): GPUInternalError;
14966
+ };
14967
+
14968
+ interface GPUObjectBase {
14969
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
14970
+ label: string;
14971
+ }
14972
+
14973
+ /**
14974
+ * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation.
14975
+ * Available only in secure contexts.
14976
+ *
14977
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
14978
+ */
14979
+ interface GPUOutOfMemoryError extends GPUError {
14980
+ }
14981
+
14982
+ declare var GPUOutOfMemoryError: {
14983
+ prototype: GPUOutOfMemoryError;
14984
+ new(message: string): GPUOutOfMemoryError;
14985
+ };
14986
+
14987
+ interface GPUPipelineBase {
14988
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
14989
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
14990
+ }
14991
+
14712
14992
  /**
14713
14993
  * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects.
14714
14994
  * Available only in secure contexts.
@@ -14729,6 +15009,295 @@ declare var GPUPipelineError: {
14729
15009
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
14730
15010
  };
14731
15011
 
15012
+ /**
15013
+ * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
15014
+ * Available only in secure contexts.
15015
+ *
15016
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
15017
+ */
15018
+ interface GPUPipelineLayout extends GPUObjectBase {
15019
+ }
15020
+
15021
+ declare var GPUPipelineLayout: {
15022
+ prototype: GPUPipelineLayout;
15023
+ new(): GPUPipelineLayout;
15024
+ };
15025
+
15026
+ /**
15027
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15028
+ * Available only in secure contexts.
15029
+ *
15030
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
15031
+ */
15032
+ interface GPURenderBundle extends GPUObjectBase {
15033
+ }
15034
+
15035
+ declare var GPURenderBundle: {
15036
+ prototype: GPURenderBundle;
15037
+ new(): GPURenderBundle;
15038
+ };
15039
+
15040
+ /**
15041
+ * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
15042
+ * Available only in secure contexts.
15043
+ *
15044
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
15045
+ */
15046
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
15047
+ }
15048
+
15049
+ declare var GPURenderPipeline: {
15050
+ prototype: GPURenderPipeline;
15051
+ new(): GPURenderPipeline;
15052
+ };
15053
+
15054
+ /**
15055
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
15056
+ * Available only in secure contexts.
15057
+ *
15058
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
15059
+ */
15060
+ interface GPUSampler extends GPUObjectBase {
15061
+ }
15062
+
15063
+ declare var GPUSampler: {
15064
+ prototype: GPUSampler;
15065
+ new(): GPUSampler;
15066
+ };
15067
+
15068
+ /**
15069
+ * The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
15070
+ * Available only in secure contexts.
15071
+ *
15072
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
15073
+ */
15074
+ interface GPUShaderModule extends GPUObjectBase {
15075
+ /**
15076
+ * The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
15077
+ *
15078
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
15079
+ */
15080
+ getCompilationInfo(): Promise<GPUCompilationInfo>;
15081
+ }
15082
+
15083
+ declare var GPUShaderModule: {
15084
+ prototype: GPUShaderModule;
15085
+ new(): GPUShaderModule;
15086
+ };
15087
+
15088
+ /**
15089
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
15090
+ * Available only in secure contexts.
15091
+ *
15092
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
15093
+ */
15094
+ interface GPUSupportedFeatures {
15095
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
15096
+ }
15097
+
15098
+ declare var GPUSupportedFeatures: {
15099
+ prototype: GPUSupportedFeatures;
15100
+ new(): GPUSupportedFeatures;
15101
+ };
15102
+
15103
+ /**
15104
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
15105
+ * Available only in secure contexts.
15106
+ *
15107
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
15108
+ */
15109
+ interface GPUSupportedLimits {
15110
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15111
+ readonly maxBindGroups: number;
15112
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15113
+ readonly maxBindGroupsPlusVertexBuffers: number;
15114
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15115
+ readonly maxBindingsPerBindGroup: number;
15116
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15117
+ readonly maxBufferSize: number;
15118
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15119
+ readonly maxColorAttachmentBytesPerSample: number;
15120
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15121
+ readonly maxColorAttachments: number;
15122
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15123
+ readonly maxComputeInvocationsPerWorkgroup: number;
15124
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15125
+ readonly maxComputeWorkgroupSizeX: number;
15126
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15127
+ readonly maxComputeWorkgroupSizeY: number;
15128
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15129
+ readonly maxComputeWorkgroupSizeZ: number;
15130
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15131
+ readonly maxComputeWorkgroupStorageSize: number;
15132
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15133
+ readonly maxComputeWorkgroupsPerDimension: number;
15134
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15135
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
15136
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15137
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
15138
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15139
+ readonly maxInterStageShaderVariables: number;
15140
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15141
+ readonly maxSampledTexturesPerShaderStage: number;
15142
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15143
+ readonly maxSamplersPerShaderStage: number;
15144
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15145
+ readonly maxStorageBufferBindingSize: number;
15146
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15147
+ readonly maxStorageBuffersPerShaderStage: number;
15148
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15149
+ readonly maxStorageTexturesPerShaderStage: number;
15150
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15151
+ readonly maxTextureArrayLayers: number;
15152
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15153
+ readonly maxTextureDimension1D: number;
15154
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15155
+ readonly maxTextureDimension2D: number;
15156
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15157
+ readonly maxTextureDimension3D: number;
15158
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15159
+ readonly maxUniformBufferBindingSize: number;
15160
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15161
+ readonly maxUniformBuffersPerShaderStage: number;
15162
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15163
+ readonly maxVertexAttributes: number;
15164
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15165
+ readonly maxVertexBufferArrayStride: number;
15166
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15167
+ readonly maxVertexBuffers: number;
15168
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15169
+ readonly minStorageBufferOffsetAlignment: number;
15170
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15171
+ readonly minUniformBufferOffsetAlignment: number;
15172
+ }
15173
+
15174
+ declare var GPUSupportedLimits: {
15175
+ prototype: GPUSupportedLimits;
15176
+ new(): GPUSupportedLimits;
15177
+ };
15178
+
15179
+ /**
15180
+ * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
15181
+ * Available only in secure contexts.
15182
+ *
15183
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
15184
+ */
15185
+ interface GPUTexture extends GPUObjectBase {
15186
+ /**
15187
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
15188
+ *
15189
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
15190
+ */
15191
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
15192
+ /**
15193
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
15194
+ *
15195
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
15196
+ */
15197
+ readonly dimension: GPUTextureDimension;
15198
+ /**
15199
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
15200
+ *
15201
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
15202
+ */
15203
+ readonly format: GPUTextureFormat;
15204
+ /**
15205
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
15206
+ *
15207
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
15208
+ */
15209
+ readonly height: GPUIntegerCoordinateOut;
15210
+ /**
15211
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
15212
+ *
15213
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
15214
+ */
15215
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
15216
+ /**
15217
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
15218
+ *
15219
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
15220
+ */
15221
+ readonly sampleCount: GPUSize32Out;
15222
+ /**
15223
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
15224
+ *
15225
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
15226
+ */
15227
+ readonly usage: GPUFlagsConstant;
15228
+ /**
15229
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
15230
+ *
15231
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
15232
+ */
15233
+ readonly width: GPUIntegerCoordinateOut;
15234
+ /**
15235
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
15236
+ *
15237
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
15238
+ */
15239
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
15240
+ /**
15241
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
15242
+ *
15243
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
15244
+ */
15245
+ destroy(): void;
15246
+ }
15247
+
15248
+ declare var GPUTexture: {
15249
+ prototype: GPUTexture;
15250
+ new(): GPUTexture;
15251
+ };
15252
+
15253
+ /**
15254
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
15255
+ * Available only in secure contexts.
15256
+ *
15257
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
15258
+ */
15259
+ interface GPUTextureView extends GPUObjectBase {
15260
+ }
15261
+
15262
+ declare var GPUTextureView: {
15263
+ prototype: GPUTextureView;
15264
+ new(): GPUTextureView;
15265
+ };
15266
+
15267
+ /**
15268
+ * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors.
15269
+ * Available only in secure contexts.
15270
+ *
15271
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
15272
+ */
15273
+ interface GPUUncapturedErrorEvent extends Event {
15274
+ /**
15275
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
15276
+ *
15277
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
15278
+ */
15279
+ readonly error: GPUError;
15280
+ }
15281
+
15282
+ declare var GPUUncapturedErrorEvent: {
15283
+ prototype: GPUUncapturedErrorEvent;
15284
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
15285
+ };
15286
+
15287
+ /**
15288
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
15289
+ * Available only in secure contexts.
15290
+ *
15291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
15292
+ */
15293
+ interface GPUValidationError extends GPUError {
15294
+ }
15295
+
15296
+ declare var GPUValidationError: {
15297
+ prototype: GPUValidationError;
15298
+ new(message: string): GPUValidationError;
15299
+ };
15300
+
14732
15301
  /**
14733
15302
  * The **`GainNode`** interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.
14734
15303
  *
@@ -26327,7 +26896,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
26327
26896
  */
26328
26897
  readonly redirectStart: DOMHighResTimeStamp;
26329
26898
  /**
26330
- * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.
26899
+ * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retries the request, the value returned will be the start of the retry request.
26331
26900
  *
26332
26901
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
26333
26902
  */
@@ -36797,6 +37366,21 @@ interface WEBGL_multi_draw {
36797
37366
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
36798
37367
  }
36799
37368
 
37369
+ /**
37370
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
37371
+ * Available only in secure contexts.
37372
+ *
37373
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
37374
+ */
37375
+ interface WGSLLanguageFeatures {
37376
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
37377
+ }
37378
+
37379
+ declare var WGSLLanguageFeatures: {
37380
+ prototype: WGSLLanguageFeatures;
37381
+ new(): WGSLLanguageFeatures;
37382
+ };
37383
+
36800
37384
  /**
36801
37385
  * The **`WakeLock`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running.
36802
37386
  * Available only in secure contexts.
@@ -42446,6 +43030,14 @@ type GLsizei = number;
42446
43030
  type GLsizeiptr = number;
42447
43031
  type GLuint = number;
42448
43032
  type GLuint64 = number;
43033
+ type GPUFlagsConstant = number;
43034
+ type GPUIntegerCoordinate = number;
43035
+ type GPUIntegerCoordinateOut = number;
43036
+ type GPUMapModeFlags = number;
43037
+ type GPUSize32Out = number;
43038
+ type GPUSize64 = number;
43039
+ type GPUSize64Out = number;
43040
+ type GPUTextureUsageFlags = number;
42449
43041
  type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
42450
43042
  type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
42451
43043
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
@@ -42549,7 +43141,14 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
42549
43141
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
42550
43142
  type FontFaceSetLoadStatus = "loaded" | "loading";
42551
43143
  type FullscreenNavigationUI = "auto" | "hide" | "show";
43144
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
43145
+ type GPUCompilationMessageType = "error" | "info" | "warning";
43146
+ type GPUDeviceLostReason = "destroyed" | "unknown";
42552
43147
  type GPUPipelineErrorReason = "internal" | "validation";
43148
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43149
+ type GPUTextureDimension = "1d" | "2d" | "3d";
43150
+ 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";
43151
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
42553
43152
  type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
42554
43153
  type GamepadHapticsResult = "complete" | "preempted";
42555
43154
  type GamepadMappingType = "" | "standard" | "xr-standard";